All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.edi.unedifact.d99a.SSREGW.SegmentGroup3 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.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d99a.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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy