org.milyn.edi.unedifact.d05a.ICASRP.SegmentGroup24 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.ICASRP;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.SequenceDetails;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.Identity;
import org.milyn.edi.unedifact.d05a.common.Attribute;
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.Reference;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup24 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private SequenceDetails sequenceDetails;
private List identity;
private List attribute;
private List dateTimePeriod;
private List reference;
private List segmentGroup25;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sequenceDetails != null) {
nodeWriter.write("SEQ");
nodeWriter.write(delimiters.getField());
sequenceDetails.write(nodeWriter, delimiters);
}
if(identity != null && !identity.isEmpty()) {
for(Identity identityInst : identity) {
nodeWriter.write("IDE");
nodeWriter.write(delimiters.getField());
identityInst.write(nodeWriter, delimiters);
}
}
if(attribute != null && !attribute.isEmpty()) {
for(Attribute attributeInst : attribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attributeInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
segmentGroup25Inst.write(nodeWriter, delimiters);
}
}
}
public SequenceDetails getSequenceDetails() {
return sequenceDetails;
}
public SegmentGroup24 setSequenceDetails(SequenceDetails sequenceDetails) {
this.sequenceDetails = sequenceDetails; return this;
}
public List getIdentity() {
return identity;
}
public SegmentGroup24 setIdentity(List identity) {
this.identity = identity; return this;
}
public List getAttribute() {
return attribute;
}
public SegmentGroup24 setAttribute(List attribute) {
this.attribute = attribute; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup24 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup24 setReference(List reference) {
this.reference = reference; return this;
}
public List getSegmentGroup25() {
return segmentGroup25;
}
public SegmentGroup24 setSegmentGroup25(List segmentGroup25) {
this.segmentGroup25 = segmentGroup25; return this;
}
}