org.milyn.edi.unedifact.d05a.IPPOMO.SegmentGroup14 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.IPPOMO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.PartyIdentification;
import org.milyn.edi.unedifact.d05a.common.Address;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup14 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PartyIdentification partyIdentification;
private Address address;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(partyIdentification != null) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
partyIdentification.write(nodeWriter, delimiters);
}
if(address != null) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
address.write(nodeWriter, delimiters);
}
}
public PartyIdentification getPartyIdentification() {
return partyIdentification;
}
public SegmentGroup14 setPartyIdentification(PartyIdentification partyIdentification) {
this.partyIdentification = partyIdentification; return this;
}
public Address getAddress() {
return address;
}
public SegmentGroup14 setAddress(Address address) {
this.address = address; return this;
}
}