org.virtuslab.edi.unedifact.d96a.WKGRDC.SegmentGroup6 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.virtuslab.edi.unedifact.d96a.WKGRDC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.virtuslab.edi.unedifact.d96a.common.PNAPartyName;
import org.virtuslab.edi.unedifact.d96a.common.ADRAddress;
import org.virtuslab.edi.unedifact.d96a.common.DTMDateTimePeriod;
import org.virtuslab.edi.unedifact.d96a.common.LOCPlaceLocationIdentification;
import org.virtuslab.edi.unedifact.d96a.common.NATNationality;
import org.virtuslab.edi.unedifact.d96a.common.PDIPersonDemographicInformation;
import java.util.List;
import org.virtuslab.edi.unedifact.d96a.common.DOCDocumentMessageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup6 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PNAPartyName pNAPartyName;
private ADRAddress aDRAddress;
private DTMDateTimePeriod dTMDateTimePeriod;
private LOCPlaceLocationIdentification lOCPlaceLocationIdentification;
private NATNationality nATNationality;
private PDIPersonDemographicInformation pDIPersonDemographicInformation;
private List dOCDocumentMessageDetails;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(pNAPartyName != null) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
pNAPartyName.write(nodeWriter, delimiters);
}
if(aDRAddress != null) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
aDRAddress.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
if(lOCPlaceLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentification.write(nodeWriter, delimiters);
}
if(nATNationality != null) {
nodeWriter.write("NAT");
nodeWriter.write(delimiters.getField());
nATNationality.write(nodeWriter, delimiters);
}
if(pDIPersonDemographicInformation != null) {
nodeWriter.write("PDI");
nodeWriter.write(delimiters.getField());
pDIPersonDemographicInformation.write(nodeWriter, delimiters);
}
if(dOCDocumentMessageDetails != null && !dOCDocumentMessageDetails.isEmpty()) {
for(DOCDocumentMessageDetails dOCDocumentMessageDetailsInst : dOCDocumentMessageDetails) {
nodeWriter.write("DOC");
nodeWriter.write(delimiters.getField());
dOCDocumentMessageDetailsInst.write(nodeWriter, delimiters);
}
}
}
public PNAPartyName getPNAPartyName() {
return pNAPartyName;
}
public SegmentGroup6 setPNAPartyName(PNAPartyName pNAPartyName) {
this.pNAPartyName = pNAPartyName; return this;
}
public ADRAddress getADRAddress() {
return aDRAddress;
}
public SegmentGroup6 setADRAddress(ADRAddress aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup6 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public LOCPlaceLocationIdentification getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup6 setLOCPlaceLocationIdentification(LOCPlaceLocationIdentification lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public NATNationality getNATNationality() {
return nATNationality;
}
public SegmentGroup6 setNATNationality(NATNationality nATNationality) {
this.nATNationality = nATNationality; return this;
}
public PDIPersonDemographicInformation getPDIPersonDemographicInformation() {
return pDIPersonDemographicInformation;
}
public SegmentGroup6 setPDIPersonDemographicInformation(PDIPersonDemographicInformation pDIPersonDemographicInformation) {
this.pDIPersonDemographicInformation = pDIPersonDemographicInformation; return this;
}
public List getDOCDocumentMessageDetails() {
return dOCDocumentMessageDetails;
}
public SegmentGroup6 setDOCDocumentMessageDetails(List dOCDocumentMessageDetails) {
this.dOCDocumentMessageDetails = dOCDocumentMessageDetails; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy