All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alphasystem.docx4j.builder.wml.BrBuilder Maven / Gradle / Ivy


package com.alphasystem.docx4j.builder.wml;

import com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.wml.Br;
import org.docx4j.wml.STBrClear;
import org.docx4j.wml.STBrType;


/**
 * Fluent API builder for org.docx4j.wml.Br.
 * 
 */
public class BrBuilder
    extends OpenXmlBuilder
{ /** * Initialize the underlying object. * */ public BrBuilder() { this(null); } /** * Initialize the builder with given object. * * @param object * the given object */ public BrBuilder(Br 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 BrBuilder(Br src, Br target) { this(target); if (src!= null) { withType(src.getType()).withClear(src.getClear()); } } protected Br createObject() { return WmlBuilderFactory.OBJECT_FACTORY.createBr(); } public BrBuilder withType(STBrType value) { if (value!= null) { object.setType(value); } return this; } public BrBuilder withClear(STBrClear value) { if (value!= null) { object.setClear(value); } return this; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy