org.milyn.edi.unedifact.d96a.CONITT.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.CONITT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.StructureIdentification;
import org.milyn.edi.unedifact.d96a.common.RequirementsAndConditions;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.GeneralIndicator;
import org.milyn.edi.unedifact.d96a.common.NameAndAddress;
import org.milyn.edi.unedifact.d96a.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d96a.common.AdditionalPriceInformation;
import org.milyn.edi.unedifact.d96a.common.AdditionalInformation;
import org.milyn.edi.unedifact.d96a.common.Quantity;
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d96a.common.RateDetails;
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 StructureIdentification structureIdentification;
private RequirementsAndConditions requirementsAndConditions;
private List generalIndicator;
private NameAndAddress nameAndAddress;
private PlaceLocationIdentification placeLocationIdentification;
private AdditionalPriceInformation additionalPriceInformation;
private List additionalInformation;
private List quantity;
private List dateTimePeriod;
private List rateDetails;
private List segmentGroup5;
private List segmentGroup6;
private List segmentGroup7;
private List segmentGroup9;
private List segmentGroup10;
private List segmentGroup18;
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(requirementsAndConditions != null) {
nodeWriter.write("RCS");
nodeWriter.write(delimiters.getField());
requirementsAndConditions.write(nodeWriter, delimiters);
}
if(generalIndicator != null && !generalIndicator.isEmpty()) {
for(GeneralIndicator generalIndicatorInst : generalIndicator) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicatorInst.write(nodeWriter, delimiters);
}
}
if(nameAndAddress != null) {
nodeWriter.write("NAD");
nodeWriter.write(delimiters.getField());
nameAndAddress.write(nodeWriter, delimiters);
}
if(placeLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentification.write(nodeWriter, delimiters);
}
if(additionalPriceInformation != null) {
nodeWriter.write("APR");
nodeWriter.write(delimiters.getField());
additionalPriceInformation.write(nodeWriter, delimiters);
}
if(additionalInformation != null && !additionalInformation.isEmpty()) {
for(AdditionalInformation additionalInformationInst : additionalInformation) {
nodeWriter.write("ALI");
nodeWriter.write(delimiters.getField());
additionalInformationInst.write(nodeWriter, delimiters);
}
}
if(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(rateDetails != null && !rateDetails.isEmpty()) {
for(RateDetails rateDetailsInst : rateDetails) {
nodeWriter.write("RTE");
nodeWriter.write(delimiters.getField());
rateDetailsInst.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(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
segmentGroup18Inst.write(nodeWriter, delimiters);
}
}
}
public StructureIdentification getStructureIdentification() {
return structureIdentification;
}
public SegmentGroup4 setStructureIdentification(StructureIdentification structureIdentification) {
this.structureIdentification = structureIdentification; return this;
}
public RequirementsAndConditions getRequirementsAndConditions() {
return requirementsAndConditions;
}
public SegmentGroup4 setRequirementsAndConditions(RequirementsAndConditions requirementsAndConditions) {
this.requirementsAndConditions = requirementsAndConditions; return this;
}
public List getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup4 setGeneralIndicator(List generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public NameAndAddress getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup4 setNameAndAddress(NameAndAddress nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public PlaceLocationIdentification getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup4 setPlaceLocationIdentification(PlaceLocationIdentification placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public AdditionalPriceInformation getAdditionalPriceInformation() {
return additionalPriceInformation;
}
public SegmentGroup4 setAdditionalPriceInformation(AdditionalPriceInformation additionalPriceInformation) {
this.additionalPriceInformation = additionalPriceInformation; return this;
}
public List getAdditionalInformation() {
return additionalInformation;
}
public SegmentGroup4 setAdditionalInformation(List additionalInformation) {
this.additionalInformation = additionalInformation; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup4 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup4 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getRateDetails() {
return rateDetails;
}
public SegmentGroup4 setRateDetails(List rateDetails) {
this.rateDetails = rateDetails; 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 getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup4 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup4 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup18() {
return segmentGroup18;
}
public SegmentGroup4 setSegmentGroup18(List segmentGroup18) {
this.segmentGroup18 = segmentGroup18; return this;
}
}