org.milyn.edi.unedifact.d98a.CUSDEC.SegmentGroup44 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.RelatedIdentificationNumbers;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.GeneralIndicator;
import org.milyn.edi.unedifact.d98a.common.NameAndAddress;
import org.milyn.edi.unedifact.d98a.common.Measurements;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup44 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private RelatedIdentificationNumbers relatedIdentificationNumbers;
private List generalIndicator;
private NameAndAddress nameAndAddress;
private List measurements;
private List segmentGroup45;
private List segmentGroup47;
private List segmentGroup48;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(relatedIdentificationNumbers != null) {
nodeWriter.write("GIR");
nodeWriter.write(delimiters.getField());
relatedIdentificationNumbers.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(measurements != null && !measurements.isEmpty()) {
for(Measurements measurementsInst : measurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurementsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup45 != null && !segmentGroup45.isEmpty()) {
for(SegmentGroup45 segmentGroup45Inst : segmentGroup45) {
segmentGroup45Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup47 != null && !segmentGroup47.isEmpty()) {
for(SegmentGroup47 segmentGroup47Inst : segmentGroup47) {
segmentGroup47Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup48 != null && !segmentGroup48.isEmpty()) {
for(SegmentGroup48 segmentGroup48Inst : segmentGroup48) {
segmentGroup48Inst.write(nodeWriter, delimiters);
}
}
}
public RelatedIdentificationNumbers getRelatedIdentificationNumbers() {
return relatedIdentificationNumbers;
}
public SegmentGroup44 setRelatedIdentificationNumbers(RelatedIdentificationNumbers relatedIdentificationNumbers) {
this.relatedIdentificationNumbers = relatedIdentificationNumbers; return this;
}
public List getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup44 setGeneralIndicator(List generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public NameAndAddress getNameAndAddress() {
return nameAndAddress;
}
public SegmentGroup44 setNameAndAddress(NameAndAddress nameAndAddress) {
this.nameAndAddress = nameAndAddress; return this;
}
public List getMeasurements() {
return measurements;
}
public SegmentGroup44 setMeasurements(List measurements) {
this.measurements = measurements; return this;
}
public List getSegmentGroup45() {
return segmentGroup45;
}
public SegmentGroup44 setSegmentGroup45(List segmentGroup45) {
this.segmentGroup45 = segmentGroup45; return this;
}
public List getSegmentGroup47() {
return segmentGroup47;
}
public SegmentGroup44 setSegmentGroup47(List segmentGroup47) {
this.segmentGroup47 = segmentGroup47; return this;
}
public List getSegmentGroup48() {
return segmentGroup48;
}
public SegmentGroup44 setSegmentGroup48(List segmentGroup48) {
this.segmentGroup48 = segmentGroup48; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy