org.milyn.edi.unedifact.d02a.UTILMD.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.UTILMD;
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.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.DutyTaxFeeDetails;
import org.milyn.edi.unedifact.d02a.common.Priority;
import org.milyn.edi.unedifact.d02a.common.FreeText;
import org.milyn.edi.unedifact.d02a.common.AgreementIdentification;
import org.milyn.edi.unedifact.d02a.common.PartiesAndInstruction;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup4 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Identity identity;
private List placeLocationIdentification;
private List additionalProductId;
private List itemDescription;
private List dateTimePeriod;
private List processIdentification;
private List status;
private List dutyTaxFeeDetails;
private List priority;
private List freeText;
private List agreementIdentification;
private List partiesAndInstruction;
private List segmentGroup5;
private List segmentGroup6;
private List segmentGroup7;
private List segmentGroup10;
private List segmentGroup11;
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(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(dutyTaxFeeDetails != null && !dutyTaxFeeDetails.isEmpty()) {
for(DutyTaxFeeDetails dutyTaxFeeDetailsInst : dutyTaxFeeDetails) {
nodeWriter.write("TAX");
nodeWriter.write(delimiters.getField());
dutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
}
}
if(priority != null && !priority.isEmpty()) {
for(Priority priorityInst : priority) {
nodeWriter.write("PTY");
nodeWriter.write(delimiters.getField());
priorityInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(agreementIdentification != null && !agreementIdentification.isEmpty()) {
for(AgreementIdentification agreementIdentificationInst : agreementIdentification) {
nodeWriter.write("AGR");
nodeWriter.write(delimiters.getField());
agreementIdentificationInst.write(nodeWriter, delimiters);
}
}
if(partiesAndInstruction != null && !partiesAndInstruction.isEmpty()) {
for(PartiesAndInstruction partiesAndInstructionInst : partiesAndInstruction) {
nodeWriter.write("INP");
nodeWriter.write(delimiters.getField());
partiesAndInstructionInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
segmentGroup5Inst.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(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);
}
}
}
public Identity getIdentity() {
return identity;
}
public SegmentGroup4 setIdentity(Identity identity) {
this.identity = identity; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup4 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getAdditionalProductId() {
return additionalProductId;
}
public SegmentGroup4 setAdditionalProductId(List additionalProductId) {
this.additionalProductId = additionalProductId; return this;
}
public List getItemDescription() {
return itemDescription;
}
public SegmentGroup4 setItemDescription(List itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup4 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getProcessIdentification() {
return processIdentification;
}
public SegmentGroup4 setProcessIdentification(List processIdentification) {
this.processIdentification = processIdentification; return this;
}
public List getStatus() {
return status;
}
public SegmentGroup4 setStatus(List status) {
this.status = status; return this;
}
public List getDutyTaxFeeDetails() {
return dutyTaxFeeDetails;
}
public SegmentGroup4 setDutyTaxFeeDetails(List dutyTaxFeeDetails) {
this.dutyTaxFeeDetails = dutyTaxFeeDetails; return this;
}
public List getPriority() {
return priority;
}
public SegmentGroup4 setPriority(List priority) {
this.priority = priority; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup4 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getAgreementIdentification() {
return agreementIdentification;
}
public SegmentGroup4 setAgreementIdentification(List agreementIdentification) {
this.agreementIdentification = agreementIdentification; return this;
}
public List getPartiesAndInstruction() {
return partiesAndInstruction;
}
public SegmentGroup4 setPartiesAndInstruction(List partiesAndInstruction) {
this.partiesAndInstruction = partiesAndInstruction; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup4 setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
public List getSegmentGroup6() {
return segmentGroup6;
}
public SegmentGroup4 setSegmentGroup6(List segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup4 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup4 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup4 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
}