com.alphasystem.docx4j.builder.wml.StylesLatentStylesLsdExceptionBuilder Maven / Gradle / Ivy
package com.alphasystem.docx4j.builder.wml;
import java.math.BigInteger;
import com.alphasystem.docx4j.builder.OpenXmlBuilder;
/**
* Fluent API builder for org.docx4j.wml.Styles$LatentStyles$LsdException
.
*
*/
public class StylesLatentStylesLsdExceptionBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public StylesLatentStylesLsdExceptionBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public StylesLatentStylesLsdExceptionBuilder(org.docx4j.wml.Styles.LatentStyles.LsdException 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 StylesLatentStylesLsdExceptionBuilder(org.docx4j.wml.Styles.LatentStyles.LsdException src, org.docx4j.wml.Styles.LatentStyles.LsdException target) {
this(target);
if (src!= null) {
withName(src.getName()).withLocked(WmlBuilderFactory.cloneBoolean(src, "locked")).withUiPriority(WmlBuilderFactory.cloneBigInteger(src.getUiPriority())).withSemiHidden(WmlBuilderFactory.cloneBoolean(src, "semiHidden")).withUnhideWhenUsed(WmlBuilderFactory.cloneBoolean(src, "unhideWhenUsed")).withQFormat(WmlBuilderFactory.cloneBoolean(src, "qFormat"));
}
}
protected org.docx4j.wml.Styles.LatentStyles.LsdException createObject() {
return WmlBuilderFactory.OBJECT_FACTORY.createStylesLatentStylesLsdException();
}
public StylesLatentStylesLsdExceptionBuilder withName(String value) {
if (value!= null) {
object.setName(value);
}
return this;
}
public StylesLatentStylesLsdExceptionBuilder withLocked(Boolean value) {
if (value!= null) {
object.setLocked(value);
}
return this;
}
public StylesLatentStylesLsdExceptionBuilder withUiPriority(BigInteger value) {
if (value!= null) {
object.setUiPriority(value);
}
return this;
}
/**
* Calls setUiPriority
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public StylesLatentStylesLsdExceptionBuilder withUiPriority(String value) {
if (value!= null) {
object.setUiPriority(new BigInteger(value));
}
return this;
}
/**
* Calls setUiPriority
method.
*
* @param value
* Value to set
* @return
* reference to this
*/
public StylesLatentStylesLsdExceptionBuilder withUiPriority(Long value) {
if (value!= null) {
object.setUiPriority(BigInteger.valueOf(value));
}
return this;
}
public StylesLatentStylesLsdExceptionBuilder withSemiHidden(Boolean value) {
if (value!= null) {
object.setSemiHidden(value);
}
return this;
}
public StylesLatentStylesLsdExceptionBuilder withUnhideWhenUsed(Boolean value) {
if (value!= null) {
object.setUnhideWhenUsed(value);
}
return this;
}
public StylesLatentStylesLsdExceptionBuilder withQFormat(Boolean value) {
if (value!= null) {
object.setQFormat(value);
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy