org.milyn.edi.unedifact.d99a.SSREGW.SegmentGroup2 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99a.SSREGW;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99a.common.PNAPartyIdentification;
import org.milyn.edi.unedifact.d99a.common.GIRRelatedIdentificationNumbers;
import org.milyn.edi.unedifact.d99a.common.NATNationality;
import org.milyn.edi.unedifact.d99a.common.DOCDocumentMessageDetails;
import java.util.List;
import org.milyn.edi.unedifact.d99a.common.ADRAddress;
import org.milyn.edi.unedifact.d99a.common.ATTAttribute;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup2 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PNAPartyIdentification pNAPartyIdentification;
private GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers;
private NATNationality nATNationality;
private DOCDocumentMessageDetails dOCDocumentMessageDetails;
private List aDRAddress;
private List aTTAttribute;
private List segmentGroup3;
private SegmentGroup4 segmentGroup4;
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(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(aDRAddress != null && !aDRAddress.isEmpty()) {
for(ADRAddress aDRAddressInst : aDRAddress) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
aDRAddressInst.write(nodeWriter, delimiters);
}
}
if(aTTAttribute != null && !aTTAttribute.isEmpty()) {
for(ATTAttribute aTTAttributeInst : aTTAttribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
aTTAttributeInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
segmentGroup3Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup4 != null) {
segmentGroup4.write(nodeWriter, delimiters);
}
}
public PNAPartyIdentification getPNAPartyIdentification() {
return pNAPartyIdentification;
}
public SegmentGroup2 setPNAPartyIdentification(PNAPartyIdentification pNAPartyIdentification) {
this.pNAPartyIdentification = pNAPartyIdentification; return this;
}
public GIRRelatedIdentificationNumbers getGIRRelatedIdentificationNumbers() {
return gIRRelatedIdentificationNumbers;
}
public SegmentGroup2 setGIRRelatedIdentificationNumbers(GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbers) {
this.gIRRelatedIdentificationNumbers = gIRRelatedIdentificationNumbers; return this;
}
public NATNationality getNATNationality() {
return nATNationality;
}
public SegmentGroup2 setNATNationality(NATNationality nATNationality) {
this.nATNationality = nATNationality; return this;
}
public DOCDocumentMessageDetails getDOCDocumentMessageDetails() {
return dOCDocumentMessageDetails;
}
public SegmentGroup2 setDOCDocumentMessageDetails(DOCDocumentMessageDetails dOCDocumentMessageDetails) {
this.dOCDocumentMessageDetails = dOCDocumentMessageDetails; return this;
}
public List getADRAddress() {
return aDRAddress;
}
public SegmentGroup2 setADRAddress(List aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
public List getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup2 setATTAttribute(List aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public SegmentGroup2 setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public SegmentGroup4 getSegmentGroup4() {
return segmentGroup4;
}
public SegmentGroup2 setSegmentGroup4(SegmentGroup4 segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
}