com.alphasystem.docx4j.builder.wml.TextDirectionBuilder Maven / Gradle / Ivy
package com.alphasystem.docx4j.builder.wml;
import com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.wml.TextDirection;
/**
* Fluent API builder for org.docx4j.wml.TextDirection
.
*
*/
public class TextDirectionBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public TextDirectionBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public TextDirectionBuilder(TextDirection 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 TextDirectionBuilder(TextDirection src, TextDirection target) {
this(target);
if (src!= null) {
withVal(src.getVal());
}
}
protected TextDirection createObject() {
return WmlBuilderFactory.OBJECT_FACTORY.createTextDirection();
}
public TextDirectionBuilder withVal(String value) {
if (value!= null) {
object.setVal(value);
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy