org.milyn.edi.unedifact.d02a.UTILTS.SegmentGroup5 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.UTILTS;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.Identity;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d02a.common.NameAndAddress;
import org.milyn.edi.unedifact.d02a.common.AdditionalInformation;
import org.milyn.edi.unedifact.d02a.common.AdditionalProductId;
import org.milyn.edi.unedifact.d02a.common.ItemDescription;
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d02a.common.ProcessIdentification;
import org.milyn.edi.unedifact.d02a.common.Status;
import org.milyn.edi.unedifact.d02a.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup5 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Identity identity;
private List placeLocationIdentification;
private List nameAndAddress;
private List additionalInformation;
private List additionalProductId;
private List itemDescription;
private List dateTimePeriod;
private List processIdentification;
private List status;
private List freeText;
private List segmentGroup6;
private List segmentGroup7;
private List segmentGroup8;
private List segmentGroup10;
private List segmentGroup11;
private List segmentGroup12;
private List segmentGroup13;
private List segmentGroup14;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(identity != null) {
nodeWriter.write("IDE");
nodeWriter.write(delimiters.getField());
identity.write(nodeWriter, delimiters);
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(nameAndAddress != null && !nameAndAddress.isEmpty()) {
for(NameAndAddress nameAndAddressInst : nameAndAddress) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddressInst.write(nodeWriter, delimiters);
}
}
if(additionalInformation != null && !additionalInformation.isEmpty()) {
for(AdditionalInformation additionalInformationInst : additionalInformation) {
nodeWriter.write("ALI");
nodeWriter.write(delimiters.getField());
additionalInformationInst.write(nodeWriter, delimiters);
}
}
if(additionalProductId != null && !additionalProductId.isEmpty()) {
for(AdditionalProductId additionalProductIdInst : additionalProductId) {
nodeWriter.write("PIA");
nodeWriter.write(delimiters.getField());
additionalProductIdInst.write(nodeWriter, delimiters);
}
}
if(itemDescription != null && !itemDescription.isEmpty()) {
for(ItemDescription itemDescriptionInst : itemDescription) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescriptionInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(processIdentification != null && !processIdentification.isEmpty()) {
for(ProcessIdentification processIdentificationInst : processIdentification) {
nodeWriter.write("PRC");
nodeWriter.write(delimiters.getField());
processIdentificationInst.write(nodeWriter, delimiters);
}
}
if(status != null && !status.isEmpty()) {
for(Status statusInst : status) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
statusInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
segmentGroup6Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
segmentGroup13Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
}
public Identity getIdentity() {
return identity;
}
public SegmentGroup5 setIdentity(Identity identity) {
this.identity = identity; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup5 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup5 setNameAndAddress(List nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getAdditionalInformation() {
return additionalInformation;
}
public SegmentGroup5 setAdditionalInformation(List additionalInformation) {
this.additionalInformation = additionalInformation; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup5 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup5 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup5 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getProcessIdentification() {
return processIdentification;
}
public SegmentGroup5 setProcessIdentification(List processIdentification) {
this.processIdentification = processIdentification; return this;
}
public List getStatus() {
return status;
}
public SegmentGroup5 setStatus(List status) {
this.status = status; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup5 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup6() {
return segmentGroup6;
}
public SegmentGroup5 setSegmentGroup6(List segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup5 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup5 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup5 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup5 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup5 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
public List getSegmentGroup13() {
return segmentGroup13;
}
public SegmentGroup5 setSegmentGroup13(List segmentGroup13) {
this.segmentGroup13 = segmentGroup13; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup5 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
}