org.milyn.edi.unedifact.d06b.CONDRA.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.CONDRA;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.StructureIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.ItemDescription;
import org.milyn.edi.unedifact.d06b.common.Quantity;
import org.milyn.edi.unedifact.d06b.common.ContactInformation;
import org.milyn.edi.unedifact.d06b.common.AuthenticationResult;
import org.milyn.edi.unedifact.d06b.common.AgreementIdentification;
import org.milyn.edi.unedifact.d06b.common.PartiesAndInstruction;
import org.milyn.edi.unedifact.d06b.common.RequirementsAndConditions;
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d06b.common.Dimensions;
import org.milyn.edi.unedifact.d06b.common.Measurements;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private StructureIdentification structureIdentification;
private List processingInformation;
private List dateTimePeriod;
private ItemDescription itemDescription;
private List quantity;
private ContactInformation contactInformation;
private List authenticationResult;
private List agreementIdentification;
private List partiesAndInstruction;
private List requirementsAndConditions;
private List placeLocationIdentification;
private List dimensions;
private Measurements measurements;
private List segmentGroup7;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(structureIdentification != null) {
nodeWriter.write("BII");
nodeWriter.write(delimiters.getField());
structureIdentification.write(nodeWriter, delimiters);
}
if(processingInformation != null && !processingInformation.isEmpty()) {
for(ProcessingInformation processingInformationInst : processingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformationInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(itemDescription != null) {
nodeWriter.write("IMD");
nodeWriter.write(delimiters.getField());
itemDescription.write(nodeWriter, delimiters);
}
if(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
if(contactInformation != null) {
nodeWriter.write("CTA");
nodeWriter.write(delimiters.getField());
contactInformation.write(nodeWriter, delimiters);
}
if(authenticationResult != null && !authenticationResult.isEmpty()) {
for(AuthenticationResult authenticationResultInst : authenticationResult) {
nodeWriter.write("AUT");
nodeWriter.write(delimiters.getField());
authenticationResultInst.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(requirementsAndConditions != null && !requirementsAndConditions.isEmpty()) {
for(RequirementsAndConditions requirementsAndConditionsInst : requirementsAndConditions) {
nodeWriter.write("RCS");
nodeWriter.write(delimiters.getField());
requirementsAndConditionsInst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(dimensions != null && !dimensions.isEmpty()) {
for(Dimensions dimensionsInst : dimensions) {
nodeWriter.write("DIM");
nodeWriter.write(delimiters.getField());
dimensionsInst.write(nodeWriter, delimiters);
}
}
if(measurements != null) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurements.write(nodeWriter, delimiters);
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.write(nodeWriter, delimiters);
}
}
}
public StructureIdentification getStructureIdentification() {
return structureIdentification;
}
public SegmentGroup6 setStructureIdentification(StructureIdentification structureIdentification) {
this.structureIdentification = structureIdentification; return this;
}
public List getProcessingInformation() {
return processingInformation;
}
public SegmentGroup6 setProcessingInformation(List processingInformation) {
this.processingInformation = processingInformation; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup6 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public ItemDescription getItemDescription() {
return itemDescription;
}
public SegmentGroup6 setItemDescription(ItemDescription itemDescription) {
this.itemDescription = itemDescription; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup6 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public ContactInformation getContactInformation() {
return contactInformation;
}
public SegmentGroup6 setContactInformation(ContactInformation contactInformation) {
this.contactInformation = contactInformation; return this;
}
public List getAuthenticationResult() {
return authenticationResult;
}
public SegmentGroup6 setAuthenticationResult(List authenticationResult) {
this.authenticationResult = authenticationResult; return this;
}
public List getAgreementIdentification() {
return agreementIdentification;
}
public SegmentGroup6 setAgreementIdentification(List agreementIdentification) {
this.agreementIdentification = agreementIdentification; return this;
}
public List getPartiesAndInstruction() {
return partiesAndInstruction;
}
public SegmentGroup6 setPartiesAndInstruction(List partiesAndInstruction) {
this.partiesAndInstruction = partiesAndInstruction; return this;
}
public List getRequirementsAndConditions() {
return requirementsAndConditions;
}
public SegmentGroup6 setRequirementsAndConditions(List requirementsAndConditions) {
this.requirementsAndConditions = requirementsAndConditions; return this;
}
public List getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup6 setPlaceLocationIdentification(List placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getDimensions() {
return dimensions;
}
public SegmentGroup6 setDimensions(List dimensions) {
this.dimensions = dimensions; return this;
}
public Measurements getMeasurements() {
return measurements;
}
public SegmentGroup6 setMeasurements(Measurements measurements) {
this.measurements = measurements; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
}