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

org.milyn.edi.unedifact.d05a.COARRI.SegmentGroup11 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d05a.COARRI;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.DAMDamage;    
import org.milyn.edi.unedifact.d05a.common.CODComponentDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup11 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private DAMDamage dAMDamage;
    private CODComponentDetails cODComponentDetails;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(dAMDamage != null) {
            nodeWriter.write("DAM");
            nodeWriter.write(delimiters.getField());
            dAMDamage.write(nodeWriter, delimiters);
        }
        if(cODComponentDetails != null) {
            nodeWriter.write("COD");
            nodeWriter.write(delimiters.getField());
            cODComponentDetails.write(nodeWriter, delimiters);
        }
    }

    public DAMDamage getDAMDamage() {
        return dAMDamage;
    }

    public SegmentGroup11 setDAMDamage(DAMDamage dAMDamage) {
        this.dAMDamage = dAMDamage;  return this;
    }

    public CODComponentDetails getCODComponentDetails() {
        return cODComponentDetails;
    }

    public SegmentGroup11 setCODComponentDetails(CODComponentDetails cODComponentDetails) {
        this.cODComponentDetails = cODComponentDetails;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy