com.alphasystem.docx4j.builder.wml.CTTblGridChangeBuilder 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.CTTblGridChange;
import org.docx4j.wml.TblGridBase;
/**
* Fluent API builder for org.docx4j.wml.CTTblGridChange
.
*
*/
public class CTTblGridChangeBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public CTTblGridChangeBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public CTTblGridChangeBuilder(CTTblGridChange 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 CTTblGridChangeBuilder(CTTblGridChange src, CTTblGridChange target) {
this(target);
if (src!= null) {
TblGridBase tblGrid = src.getTblGrid();
if (tblGrid!= null) {
tblGrid = new TblGridBaseBuilder(tblGrid, object.getTblGrid()).getObject();
}
withTblGrid(tblGrid).withId(WmlBuilderFactory.cloneBigInteger(src.getId()));
}
}
protected CTTblGridChange createObject() {
return WmlBuilderFactory.OBJECT_FACTORY.createCTTblGridChange();
}
public CTTblGridChangeBuilder withTblGrid(TblGridBase value) {
if (value!= null) {
object.setTblGrid(value);
}
return this;
}
public CTTblGridChangeBuilder withId(BigInteger value) {
if (value!= null) {
object.setId(value);
}
return this;
}
/**
* Calls setId
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTTblGridChangeBuilder 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 CTTblGridChangeBuilder withId(Long value) {
if (value!= null) {
object.setId(BigInteger.valueOf(value));
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy