com.alphasystem.docx4j.builder.wml.CTSignedHpsMeasureBuilder Maven / Gradle / Ivy
package com.alphasystem.docx4j.builder.wml;
import java.math.BigInteger;
import com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.wml.CTSignedHpsMeasure;
/**
* Fluent API builder for org.docx4j.wml.CTSignedHpsMeasure
.
*
*/
public class CTSignedHpsMeasureBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public CTSignedHpsMeasureBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public CTSignedHpsMeasureBuilder(CTSignedHpsMeasure 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 CTSignedHpsMeasureBuilder(CTSignedHpsMeasure src, CTSignedHpsMeasure target) {
this(target);
if (src!= null) {
withVal(WmlBuilderFactory.cloneBigInteger(src.getVal()));
}
}
protected CTSignedHpsMeasure createObject() {
return WmlBuilderFactory.OBJECT_FACTORY.createCTSignedHpsMeasure();
}
public CTSignedHpsMeasureBuilder withVal(BigInteger value) {
if (value!= null) {
object.setVal(value);
}
return this;
}
/**
* Calls setVal
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public CTSignedHpsMeasureBuilder 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 CTSignedHpsMeasureBuilder withVal(Long value) {
if (value!= null) {
object.setVal(BigInteger.valueOf(value));
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy