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

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


package com.alphasystem.docx4j.builder.wml;

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


/**
 * Fluent API builder for org.docx4j.wml.Numbering$NumPicBullet.
 * 
 */
public class NumberingNumPicBulletBuilder
    extends OpenXmlBuilder
{


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

    /**
     * Initialize the builder with given object.
     * 
     * @param object
     *     the given object
     */
    public NumberingNumPicBulletBuilder(org.docx4j.wml.Numbering.NumPicBullet 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 NumberingNumPicBulletBuilder(org.docx4j.wml.Numbering.NumPicBullet src, org.docx4j.wml.Numbering.NumPicBullet target) {
        this(target);
        if (src!= null) {
            Pict pict = src.getPict();
            if (pict!= null) {
                pict = new PictBuilder(pict, object.getPict()).getObject();
            }
            withPict(pict).withNumPicBulletId(WmlBuilderFactory.cloneBigInteger(src.getNumPicBulletId()));
        }
    }

    protected org.docx4j.wml.Numbering.NumPicBullet createObject() {
        return WmlBuilderFactory.OBJECT_FACTORY.createNumberingNumPicBullet();
    }

    public NumberingNumPicBulletBuilder withPict(Pict value) {
        if (value!= null) {
            object.setPict(value);
        }
        return this;
    }

    public NumberingNumPicBulletBuilder withNumPicBulletId(BigInteger value) {
        if (value!= null) {
            object.setNumPicBulletId(value);
        }
        return this;
    }

    /**
     * Calls setNumPicBulletId method.
     * 
     * @param value
     *     Value to set
     * @return
     *     reference to this
     */
    public NumberingNumPicBulletBuilder withNumPicBulletId(String value) {
        if (value!= null) {
            object.setNumPicBulletId(new BigInteger(value));
        }
        return this;
    }

    /**
     * Calls setNumPicBulletId method.
     * 
     * @param value
     *     Value to set
     * @return
     *     reference to this
     */
    public NumberingNumPicBulletBuilder withNumPicBulletId(Long value) {
        if (value!= null) {
            object.setNumPicBulletId(BigInteger.valueOf(value));
        }
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy