org.milyn.edi.unedifact.d05a.BUSCRD.SegmentGroup12 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.BUSCRD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.GEIProcessingInformation;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.IMDItemDescription;
import org.milyn.edi.unedifact.d05a.common.CAVCharacteristicValue;
import org.milyn.edi.unedifact.d05a.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d05a.common.EQNNumberOfUnits;
import org.milyn.edi.unedifact.d05a.common.RFFReference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup12 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GEIProcessingInformation gEIProcessingInformation;
private List iMDItemDescription;
private List cAVCharacteristicValue;
private PCDPercentageDetails pCDPercentageDetails;
private EQNNumberOfUnits eQNNumberOfUnits;
private List rFFReference;
private List segmentGroup13;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(gEIProcessingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformation.write(nodeWriter, delimiters);
}
if(iMDItemDescription != null && !iMDItemDescription.isEmpty()) {
for(IMDItemDescription iMDItemDescriptionInst : iMDItemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
iMDItemDescriptionInst.write(nodeWriter, delimiters);
}
}
if(cAVCharacteristicValue != null && !cAVCharacteristicValue.isEmpty()) {
for(CAVCharacteristicValue cAVCharacteristicValueInst : cAVCharacteristicValue) {
nodeWriter.write("CAV");
nodeWriter.write(delimiters.getField());
cAVCharacteristicValueInst.write(nodeWriter, delimiters);
}
}
if(pCDPercentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetails.write(nodeWriter, delimiters);
}
if(eQNNumberOfUnits != null) {
nodeWriter.write("EQN");
nodeWriter.write(delimiters.getField());
eQNNumberOfUnits.write(nodeWriter, delimiters);
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
segmentGroup13Inst.write(nodeWriter, delimiters);
}
}
}
public GEIProcessingInformation getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup12 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public List getIMDItemDescription() {
return iMDItemDescription;
}
public SegmentGroup12 setIMDItemDescription(List iMDItemDescription) {
this.iMDItemDescription = iMDItemDescription; return this;
}
public List getCAVCharacteristicValue() {
return cAVCharacteristicValue;
}
public SegmentGroup12 setCAVCharacteristicValue(List cAVCharacteristicValue) {
this.cAVCharacteristicValue = cAVCharacteristicValue; return this;
}
public PCDPercentageDetails getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup12 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public EQNNumberOfUnits getEQNNumberOfUnits() {
return eQNNumberOfUnits;
}
public SegmentGroup12 setEQNNumberOfUnits(EQNNumberOfUnits eQNNumberOfUnits) {
this.eQNNumberOfUnits = eQNNumberOfUnits; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup12 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getSegmentGroup13() {
return segmentGroup13;
}
public SegmentGroup12 setSegmentGroup13(List segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
}