org.milyn.edi.unedifact.d02a.ITRRPT.SegmentGroup18 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.ITRRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.PackageIdentification;
import org.milyn.edi.unedifact.d02a.common.Reference;
import org.milyn.edi.unedifact.d02a.common.PhysicalOrLogicalState;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup18 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PackageIdentification packageIdentification;
private Reference reference;
private PhysicalOrLogicalState physicalOrLogicalState;
private List dateTimePeriod;
private List segmentGroup19;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(packageIdentification != null) {
nodeWriter.write("PCI");
nodeWriter.write(delimiters.getField());
packageIdentification.write(nodeWriter, delimiters);
}
if(reference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
reference.write(nodeWriter, delimiters);
}
if(physicalOrLogicalState != null) {
nodeWriter.write("CDI");
nodeWriter.write(delimiters.getField());
physicalOrLogicalState.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
segmentGroup19Inst.write(nodeWriter, delimiters);
}
}
}
public PackageIdentification getPackageIdentification() {
return packageIdentification;
}
public SegmentGroup18 setPackageIdentification(PackageIdentification packageIdentification) {
this.packageIdentification = packageIdentification; return this;
}
public Reference getReference() {
return reference;
}
public SegmentGroup18 setReference(Reference reference) {
this.reference = reference; return this;
}
public PhysicalOrLogicalState getPhysicalOrLogicalState() {
return physicalOrLogicalState;
}
public SegmentGroup18 setPhysicalOrLogicalState(PhysicalOrLogicalState physicalOrLogicalState) {
this.physicalOrLogicalState = physicalOrLogicalState; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup18 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getSegmentGroup19() {
return segmentGroup19;
}
public SegmentGroup18 setSegmentGroup19(List segmentGroup19) {
this.segmentGroup19 = segmentGroup19; return this;
}
}