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

com.alphasystem.docx4j.builder.wml.SdtBlockBuilder 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.CTSdtEndPr;
import org.docx4j.wml.SdtBlock;
import org.docx4j.wml.SdtContentBlock;
import org.docx4j.wml.SdtPr;


/**
 * Fluent API builder for org.docx4j.wml.SdtBlock.
 * 
 */
public class SdtBlockBuilder
    extends OpenXmlBuilder
{


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

    /**
     * Initialize the builder with given object.
     * 
     * @param object
     *     the given object
     */
    public SdtBlockBuilder(SdtBlock object) {
        super(object);
    }

    protected SdtBlock createObject() {
        return WmlBuilderFactory.OBJECT_FACTORY.createSdtBlock();
    }

    public SdtBlockBuilder withSdtPr(SdtPr value) {
        if (value!= null) {
            object.setSdtPr(value);
        }
        return this;
    }

    public SdtBlockBuilder withSdtEndPr(CTSdtEndPr value) {
        if (value!= null) {
            object.setSdtEndPr(value);
        }
        return this;
    }

    public SdtBlockBuilder withSdtContent(SdtContentBlock value) {
        if (value!= null) {
            object.setSdtContent(value);
        }
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy