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

com.alphasystem.docx4j.builder.wml.CTEastAsianLayoutBuilder 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.CTEastAsianLayout;
import org.docx4j.wml.STCombineBrackets;


/**
 * Fluent API builder for org.docx4j.wml.CTEastAsianLayout.
 * 
 */
public class CTEastAsianLayoutBuilder
    extends OpenXmlBuilder
{


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

    /**
     * Initialize the builder with given object.
     * 
     * @param object
     *     the given object
     */
    public CTEastAsianLayoutBuilder(CTEastAsianLayout 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 CTEastAsianLayoutBuilder(CTEastAsianLayout src, CTEastAsianLayout target) {
        this(target);
        if (src!= null) {
            withId(WmlBuilderFactory.cloneBigInteger(src.getId())).withCombine(WmlBuilderFactory.cloneBoolean(src, "combine")).withCombineBrackets(src.getCombineBrackets()).withVert(WmlBuilderFactory.cloneBoolean(src, "vert")).withVertCompress(WmlBuilderFactory.cloneBoolean(src, "vertCompress"));
        }
    }

    protected CTEastAsianLayout createObject() {
        return WmlBuilderFactory.OBJECT_FACTORY.createCTEastAsianLayout();
    }

    public CTEastAsianLayoutBuilder withId(BigInteger value) {
        if (value!= null) {
            object.setId(value);
        }
        return this;
    }

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

    public CTEastAsianLayoutBuilder withCombine(Boolean value) {
        if (value!= null) {
            object.setCombine(value);
        }
        return this;
    }

    public CTEastAsianLayoutBuilder withCombineBrackets(STCombineBrackets value) {
        if (value!= null) {
            object.setCombineBrackets(value);
        }
        return this;
    }

    public CTEastAsianLayoutBuilder withVert(Boolean value) {
        if (value!= null) {
            object.setVert(value);
        }
        return this;
    }

    public CTEastAsianLayoutBuilder withVertCompress(Boolean value) {
        if (value!= null) {
            object.setVertCompress(value);
        }
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy