All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alphasystem.docx4j.builder.wml.CTSignedTwipsMeasureBuilder Maven / Gradle / Ivy

There is a newer version: 0.5.5
Show newest version

package com.alphasystem.docx4j.builder.wml;

import java.math.BigInteger;
import com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.wml.CTSignedTwipsMeasure;


/**
 * Fluent API builder for org.docx4j.wml.CTSignedTwipsMeasure.
 * 
 */
public class CTSignedTwipsMeasureBuilder
    extends OpenXmlBuilder
{


    /**
     * Initialize the underlying object.
     * 
     */
    public CTSignedTwipsMeasureBuilder() {
        this(null);
    }

    /**
     * Initialize the builder with given object.
     * 
     * @param object
     *     the given object
     */
    public CTSignedTwipsMeasureBuilder(CTSignedTwipsMeasure 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 CTSignedTwipsMeasureBuilder(CTSignedTwipsMeasure src, CTSignedTwipsMeasure target) {
        this(target);
        if (src!= null) {
            withVal(WmlBuilderFactory.cloneBigInteger(src.getVal()));
        }
    }

    protected CTSignedTwipsMeasure createObject() {
        return WmlBuilderFactory.OBJECT_FACTORY.createCTSignedTwipsMeasure();
    }

    public CTSignedTwipsMeasureBuilder withVal(BigInteger value) {
        if (value!= null) {
            object.setVal(value);
        }
        return this;
    }

    /**
     * Calls setVal method.
     * 
     * @param value
     *     Value to set
     * @return
     *     reference to this
     */
    public CTSignedTwipsMeasureBuilder 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 CTSignedTwipsMeasureBuilder withVal(Long value) {
        if (value!= null) {
            object.setVal(BigInteger.valueOf(value));
        }
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy