com.alphasystem.docx4j.builder.wml.TrBuilder 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 java.util.List;
import com.alphasystem.docx4j.builder.OpenXmlBuilder;
import org.docx4j.wml.CTTblPrEx;
import org.docx4j.wml.Tr;
import org.docx4j.wml.TrPr;
/**
* Fluent API builder for org.docx4j.wml.Tr
.
*
*/
public class TrBuilder
extends OpenXmlBuilder
{
/**
* Initialize the underlying object.
*
*/
public TrBuilder() {
this(null);
}
/**
* Initialize the builder with given object.
*
* @param object
* the given object
*/
public TrBuilder(Tr 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 TrBuilder(Tr src, Tr target) {
this(target);
if (src!= null) {
CTTblPrEx tblPrEx = src.getTblPrEx();
if (tblPrEx!= null) {
tblPrEx = new CTTblPrExBuilder(tblPrEx, object.getTblPrEx()).getObject();
}
TrPr trPr = src.getTrPr();
if (trPr!= null) {
trPr = new TrPrBuilder(trPr, object.getTrPr()).getObject();
}
List