org.milyn.edi.unedifact.d05a.SSIMOD.SegmentGroup3 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.SSIMOD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.PNAPartyIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.ADRAddress;
import org.milyn.edi.unedifact.d05a.common.GIRRelatedIdentificationNumbers;
import org.milyn.edi.unedifact.d05a.common.NATNationality;
import org.milyn.edi.unedifact.d05a.common.DOCDocumentMessageDetails;
import org.milyn.edi.unedifact.d05a.common.ATTAttribute;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup3 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PNAPartyIdentification pNAPartyIdentification;
private List aDRAddress;
private GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers;
private NATNationality nATNationality;
private DOCDocumentMessageDetails dOCDocumentMessageDetails;
private List aTTAttribute;
private List segmentGroup4;
private SegmentGroup5 segmentGroup5;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(pNAPartyIdentification != null) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
pNAPartyIdentification.write(nodeWriter, delimiters);
}
if(aDRAddress != null && !aDRAddress.isEmpty()) {
for(ADRAddress aDRAddressInst : aDRAddress) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
aDRAddressInst.write(nodeWriter, delimiters);
}
}
if(gIRRelatedIdentificationNumbers != null) {
nodeWriter.write("GIR");
nodeWriter.write(delimiters.getField());
gIRRelatedIdentificationNumbers.write(nodeWriter, delimiters);
}
if(nATNationality != null) {
nodeWriter.write("NAT");
nodeWriter.write(delimiters.getField());
nATNationality.write(nodeWriter, delimiters);
}
if(dOCDocumentMessageDetails != null) {
nodeWriter.write("DOC");
nodeWriter.write(delimiters.getField());
dOCDocumentMessageDetails.write(nodeWriter, delimiters);
}
if(aTTAttribute != null && !aTTAttribute.isEmpty()) {
for(ATTAttribute aTTAttributeInst : aTTAttribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
aTTAttributeInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null) {
segmentGroup5.write(nodeWriter, delimiters);
}
}
public PNAPartyIdentification getPNAPartyIdentification() {
return pNAPartyIdentification;
}
public SegmentGroup3 setPNAPartyIdentification(PNAPartyIdentification pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public List getADRAddress() {
return aDRAddress;
}
public SegmentGroup3 setADRAddress(List aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
public GIRRelatedIdentificationNumbers getGIRRelatedIdentificationNumbers() {
return gIRRelatedIdentificationNumbers;
}
public SegmentGroup3 setGIRRelatedIdentificationNumbers(GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers) {
this.gIRRelatedIdentificationNumbers = gIRRelatedIdentificationNumbers; return this;
}
public NATNationality getNATNationality() {
return nATNationality;
}
public SegmentGroup3 setNATNationality(NATNationality nATNationality) {
this.nATNationality = nATNationality; return this;
}
public DOCDocumentMessageDetails getDOCDocumentMessageDetails() {
return dOCDocumentMessageDetails;
}
public SegmentGroup3 setDOCDocumentMessageDetails(DOCDocumentMessageDetails dOCDocumentMessageDetails) {
this.dOCDocumentMessageDetails = dOCDocumentMessageDetails; return this;
}
public List getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup3 setATTAttribute(List aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public SegmentGroup3 setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public SegmentGroup5 getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup3 setSegmentGroup5(SegmentGroup5 segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
}