org.milyn.edi.unedifact.d96a.GESMES.SegmentGroup19 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.GESMES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.Relationship;
import org.milyn.edi.unedifact.d96a.common.ArrayInformation;
import java.util.List;
import org.milyn.edi.unedifact.d96a.common.Identity;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup19 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Relationship relationship;
private ArrayInformation arrayInformation;
private List identity;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(relationship != null) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
relationship.write(nodeWriter, delimiters);
}
if(arrayInformation != null) {
nodeWriter.write("ARR");
nodeWriter.write(delimiters.getField());
arrayInformation.write(nodeWriter, delimiters);
}
if(identity != null && !identity.isEmpty()) {
for(Identity identityInst : identity) {
nodeWriter.write("IDE");
nodeWriter.write(delimiters.getField());
identityInst.write(nodeWriter, delimiters);
}
}
}
public Relationship getRelationship() {
return relationship;
}
public SegmentGroup19 setRelationship(Relationship relationship) {
this.relationship = relationship; return this;
}
public ArrayInformation getArrayInformation() {
return arrayInformation;
}
public SegmentGroup19 setArrayInformation(ArrayInformation arrayInformation) {
this.arrayInformation = arrayInformation; return this;
}
public List getIdentity() {
return identity;
}
public SegmentGroup19 setIdentity(List identity) {
this.identity = identity; return this;
}
}