com.alphasystem.docx4j.builder.wml.CTTblPrExChangeBuilder 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 javax.xml.datatype.XMLGregorianCalendar;
import com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.wml.CTTblPrExBase;
import org.docx4j.wml.CTTblPrExChange;
/**
* Fluent API builder for org.docx4j.wml.CTTblPrExChange
.
*
*/
public class CTTblPrExChangeBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public CTTblPrExChangeBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public CTTblPrExChangeBuilder(CTTblPrExChange 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 CTTblPrExChangeBuilder(CTTblPrExChange src, CTTblPrExChange target) {
this(target);
if (src!= null) {
CTTblPrExBase tblPrEx = src.getTblPrEx();
if (tblPrEx!= null) {
tblPrEx = new CTTblPrExBaseBuilder(tblPrEx, object.getTblPrEx()).getObject();
}
withTblPrEx(tblPrEx).withAuthor(src.getAuthor()).withDate(src.getDate()).withId(WmlBuilderFactory.cloneBigInteger(src.getId()));
}
}
protected CTTblPrExChange createObject() {
return WmlBuilderFactory.OBJECT_FACTORY.createCTTblPrExChange();
}
public CTTblPrExChangeBuilder withTblPrEx(CTTblPrExBase value) {
if (value!= null) {
object.setTblPrEx(value);
}
return this;
}
public CTTblPrExChangeBuilder withAuthor(String value) {
if (value!= null) {
object.setAuthor(value);
}
return this;
}
public CTTblPrExChangeBuilder withDate(XMLGregorianCalendar value) {
if (value!= null) {
object.setDate(value);
}
return this;
}
public CTTblPrExChangeBuilder withId(BigInteger value) {
if (value!= null) {
object.setId(value);
}
return this;
}
/**
* Calls setId
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTTblPrExChangeBuilder 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 CTTblPrExChangeBuilder withId(Long value) {
if (value!= null) {
object.setId(BigInteger.valueOf(value));
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy