com.alphasystem.docx4j.builder.wml.CTControlBuilder 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.CTControl;
/**
* Fluent API builder for org.docx4j.wml.CTControl
.
*
*/
public class CTControlBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public CTControlBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public CTControlBuilder(CTControl 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 CTControlBuilder(CTControl src, CTControl target) {
this(target);
if (src!= null) {
withName(src.getName()).withShapeid(src.getShapeid()).withId(src.getId());
}
}
protected CTControl createObject() {
return WmlBuilderFactory.OBJECT_FACTORY.createCTControl();
}
public CTControlBuilder withName(String value) {
if (value!= null) {
object.setName(value);
}
return this;
}
public CTControlBuilder withShapeid(String value) {
if (value!= null) {
object.setShapeid(value);
}
return this;
}
public CTControlBuilder withId(String value) {
if (value!= null) {
object.setId(value);
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy