org.milyn.edi.unedifact.d05a.IPPOAD.Ippoad Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.IPPOAD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d05a.common.BeginningOfMessage;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.Attribute;
import org.milyn.edi.unedifact.d05a.common.Reference;
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.Quantity;
import org.milyn.edi.unedifact.d05a.common.SequenceDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Ippoad implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BeginningOfMessage beginningOfMessage;
private List attribute;
private List reference;
private List dateTimePeriod;
private List quantity;
private SequenceDetails sequenceDetails;
private List segmentGroup1;
private List segmentGroup3;
private List segmentGroup6;
private List segmentGroup10;
private List segmentGroup13;
private List segmentGroup16;
private List segmentGroup19;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(beginningOfMessage != null) {
nodeWriter.write("BGM");
nodeWriter.write(delimiters.getField());
beginningOfMessage.write(nodeWriter, delimiters);
}
if(attribute != null && !attribute.isEmpty()) {
for(Attribute attributeInst : attribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attributeInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
if(sequenceDetails != null) {
nodeWriter.write("SEQ");
nodeWriter.write(delimiters.getField());
sequenceDetails.write(nodeWriter, delimiters);
}
if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
segmentGroup1Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
segmentGroup3Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
segmentGroup6Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
segmentGroup13Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
segmentGroup16Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
segmentGroup19Inst.write(nodeWriter, delimiters);
}
}
}
public BeginningOfMessage getBeginningOfMessage() {
return beginningOfMessage;
}
public Ippoad setBeginningOfMessage(BeginningOfMessage beginningOfMessage) {
this.beginningOfMessage = beginningOfMessage; return this;
}
public List getAttribute() {
return attribute;
}
public Ippoad setAttribute(List attribute) {
this.attribute = attribute; return this;
}
public List getReference() {
return reference;
}
public Ippoad setReference(List reference) {
this.reference = reference; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public Ippoad setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getQuantity() {
return quantity;
}
public Ippoad setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public SequenceDetails getSequenceDetails() {
return sequenceDetails;
}
public Ippoad setSequenceDetails(SequenceDetails sequenceDetails) {
this.sequenceDetails = sequenceDetails; return this;
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Ippoad setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public Ippoad setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public List getSegmentGroup6() {
return segmentGroup6;
}
public Ippoad setSegmentGroup6(List segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public Ippoad setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup13() {
return segmentGroup13;
}
public Ippoad setSegmentGroup13(List segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
public List getSegmentGroup16() {
return segmentGroup16;
}
public Ippoad setSegmentGroup16(List segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
public List getSegmentGroup19() {
return segmentGroup19;
}
public Ippoad setSegmentGroup19(List segmentGroup19) {
this.segmentGroup19 = segmentGroup19; return this;
}
}