com.alphasystem.docx4j.builder.wml.CTBookmarkRangeBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of open-xml-builder Show documentation
Show all versions of open-xml-builder Show documentation
Alpha system commons library
package com.alphasystem.docx4j.builder.wml;
import java.math.BigInteger;
import com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.wml.CTBookmarkRange;
import org.docx4j.wml.STDisplacedByCustomXml;
/**
* Fluent API builder for org.docx4j.wml.CTBookmarkRange
.
*
*/
public class CTBookmarkRangeBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public CTBookmarkRangeBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public CTBookmarkRangeBuilder(CTBookmarkRange 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 CTBookmarkRangeBuilder(CTBookmarkRange src, CTBookmarkRange target) {
this(target);
if (src!= null) {
withColFirst(WmlBuilderFactory.cloneBigInteger(src.getColFirst())).withColLast(WmlBuilderFactory.cloneBigInteger(src.getColLast())).withDisplacedByCustomXml(src.getDisplacedByCustomXml()).withId(WmlBuilderFactory.cloneBigInteger(src.getId()));
}
}
protected CTBookmarkRange createObject() {
return WmlBuilderFactory.OBJECT_FACTORY.createCTBookmarkRange();
}
public CTBookmarkRangeBuilder withColFirst(BigInteger value) {
if (value!= null) {
object.setColFirst(value);
}
return this;
}
/**
* Calls setColFirst
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTBookmarkRangeBuilder withColFirst(String value) {
if (value!= null) {
object.setColFirst(new BigInteger(value));
}
return this;
}
/**
* Calls setColFirst
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTBookmarkRangeBuilder withColFirst(Long value) {
if (value!= null) {
object.setColFirst(BigInteger.valueOf(value));
}
return this;
}
public CTBookmarkRangeBuilder withColLast(BigInteger value) {
if (value!= null) {
object.setColLast(value);
}
return this;
}
/**
* Calls setColLast
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTBookmarkRangeBuilder withColLast(String value) {
if (value!= null) {
object.setColLast(new BigInteger(value));
}
return this;
}
/**
* Calls setColLast
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTBookmarkRangeBuilder withColLast(Long value) {
if (value!= null) {
object.setColLast(BigInteger.valueOf(value));
}
return this;
}
public CTBookmarkRangeBuilder withDisplacedByCustomXml(STDisplacedByCustomXml value) {
if (value!= null) {
object.setDisplacedByCustomXml(value);
}
return this;
}
public CTBookmarkRangeBuilder withId(BigInteger value) {
if (value!= null) {
object.setId(value);
}
return this;
}
/**
* Calls setId
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTBookmarkRangeBuilder 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 CTBookmarkRangeBuilder withId(Long value) {
if (value!= null) {
object.setId(BigInteger.valueOf(value));
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy