com.alphasystem.docx4j.builder.wml.CTFitTextBuilder Maven / Gradle / Ivy
package com.alphasystem.docx4j.builder.wml;
import java.math.BigInteger;
import com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.wml.CTFitText;
/**
* Fluent API builder for org.docx4j.wml.CTFitText
.
*
*/
public class CTFitTextBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public CTFitTextBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public CTFitTextBuilder(CTFitText object) {
super(object);
}
/**
* Copies values fom src
into target
. Values of target
will be overridden by the values from src
.
*
* @param src
* source object
* @param target
* target object
*/
public CTFitTextBuilder(CTFitText src, CTFitText target) {
this(target);
if (src!= null) {
withVal(WmlBuilderFactory.cloneBigInteger(src.getVal())).withId(WmlBuilderFactory.cloneBigInteger(src.getId()));
}
}
protected CTFitText createObject() {
return WmlBuilderFactory.OBJECT_FACTORY.createCTFitText();
}
public CTFitTextBuilder withVal(BigInteger value) {
if (value!= null) {
object.setVal(value);
}
return this;
}
/**
* Calls setVal
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTFitTextBuilder withVal(String value) {
if (value!= null) {
object.setVal(new BigInteger(value));
}
return this;
}
/**
* Calls setVal
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTFitTextBuilder withVal(Long value) {
if (value!= null) {
object.setVal(BigInteger.valueOf(value));
}
return this;
}
public CTFitTextBuilder withId(BigInteger value) {
if (value!= null) {
object.setId(value);
}
return this;
}
/**
* Calls setId
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTFitTextBuilder withId(String value) {
if (value!= null) {
object.setId(new BigInteger(value));
}
return this;
}
/**
* Calls setId
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTFitTextBuilder withId(Long value) {
if (value!= null) {
object.setId(BigInteger.valueOf(value));
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy