com.alphasystem.docx4j.builder.wml.RFontsBuilder 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.RFonts;
import org.docx4j.wml.STHint;
import org.docx4j.wml.STTheme;
/**
* Fluent API builder for org.docx4j.wml.RFonts
.
*
*/
public class RFontsBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public RFontsBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public RFontsBuilder(RFonts 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 RFontsBuilder(RFonts src, RFonts target) {
this(target);
if (src!= null) {
withHint(src.getHint()).withAscii(src.getAscii()).withHAnsi(src.getHAnsi()).withEastAsia(src.getEastAsia()).withCs(src.getCs()).withAsciiTheme(src.getAsciiTheme()).withHAnsiTheme(src.getHAnsiTheme()).withEastAsiaTheme(src.getEastAsiaTheme()).withCstheme(src.getCstheme());
}
}
protected RFonts createObject() {
return WmlBuilderFactory.OBJECT_FACTORY.createRFonts();
}
public RFontsBuilder withHint(STHint value) {
if (value!= null) {
object.setHint(value);
}
return this;
}
public RFontsBuilder withAscii(String value) {
if (value!= null) {
object.setAscii(value);
}
return this;
}
public RFontsBuilder withHAnsi(String value) {
if (value!= null) {
object.setHAnsi(value);
}
return this;
}
public RFontsBuilder withEastAsia(String value) {
if (value!= null) {
object.setEastAsia(value);
}
return this;
}
public RFontsBuilder withCs(String value) {
if (value!= null) {
object.setCs(value);
}
return this;
}
public RFontsBuilder withAsciiTheme(STTheme value) {
if (value!= null) {
object.setAsciiTheme(value);
}
return this;
}
public RFontsBuilder withHAnsiTheme(STTheme value) {
if (value!= null) {
object.setHAnsiTheme(value);
}
return this;
}
public RFontsBuilder withEastAsiaTheme(STTheme value) {
if (value!= null) {
object.setEastAsiaTheme(value);
}
return this;
}
public RFontsBuilder withCstheme(STTheme value) {
if (value!= null) {
object.setCstheme(value);
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy