org.milyn.edi.unedifact.d11b.UTILMD.SegmentGroup5 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d11b.UTILMD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d11b.common.LOCPlaceLocationIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d11b.common.HYNHierarchyInformation;
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 LOCPlaceLocationIdentification lOCPlaceLocationIdentification;
private List hYNHierarchyInformation;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(lOCPlaceLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentification.write(nodeWriter, delimiters);
}
if(hYNHierarchyInformation != null && !hYNHierarchyInformation.isEmpty()) {
for(HYNHierarchyInformation hYNHierarchyInformationInst : hYNHierarchyInformation) {
nodeWriter.write("HYN");
nodeWriter.write(delimiters.getField());
hYNHierarchyInformationInst.write(nodeWriter, delimiters);
}
}
}
public LOCPlaceLocationIdentification getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup5 setLOCPlaceLocationIdentification(LOCPlaceLocationIdentification lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getHYNHierarchyInformation() {
return hYNHierarchyInformation;
}
public SegmentGroup5 setHYNHierarchyInformation(List hYNHierarchyInformation) {
this.hYNHierarchyInformation = hYNHierarchyInformation; return this;
}
}