com.alphasystem.docx4j.builder.wml.SdtBlockBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of open-xml-builder Show documentation
Show all versions of open-xml-builder Show documentation
Alpha system commons library
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