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

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

There is a newer version: 0.5.5
Show newest version

package com.alphasystem.docx4j.builder.wml;

import com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.wml.CTEm;
import org.docx4j.wml.STEm;


/**
 * Fluent API builder for org.docx4j.wml.CTEm.
 * 
 */
public class CTEmBuilder
    extends OpenXmlBuilder
{


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

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

    protected CTEm createObject() {
        return WmlBuilderFactory.OBJECT_FACTORY.createCTEm();
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy