org.milyn.edi.unedifact.d95b.SSREGW.SegmentGroup3 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d95b.SSREGW;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d95b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d95b.common.ADRAddress;
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 DTMDateTimePeriod dTMDateTimePeriod;
private ADRAddress aDRAddress;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(dTMDateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
if(aDRAddress != null) {
nodeWriter.write("ADR");
nodeWriter.write(delimiters.getField());
aDRAddress.write(nodeWriter, delimiters);
}
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup3 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public ADRAddress getADRAddress() {
return aDRAddress;
}
public SegmentGroup3 setADRAddress(ADRAddress aDRAddress) {
this.aDRAddress = aDRAddress; return this;
}
}