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

org.milyn.edi.unedifact.d96a.RECADV.SegmentGroup19 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.d96a.RECADV;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d96a.common.PhysicalOrLogicalState;    
import java.util.List;    
import org.milyn.edi.unedifact.d96a.common.PartiesToInstruction;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup19 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private PhysicalOrLogicalState physicalOrLogicalState;
    private List partiesToInstruction;

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

        if(physicalOrLogicalState != null) {
            nodeWriter.write("CDI");
            nodeWriter.write(delimiters.getField());
            physicalOrLogicalState.write(nodeWriter, delimiters);
        }
        if(partiesToInstruction != null && !partiesToInstruction.isEmpty()) {
            for(PartiesToInstruction partiesToInstructionInst : partiesToInstruction) {
                nodeWriter.write("INP");
                nodeWriter.write(delimiters.getField());
                partiesToInstructionInst.write(nodeWriter, delimiters);
            }
        }
    }

    public PhysicalOrLogicalState getPhysicalOrLogicalState() {
        return physicalOrLogicalState;
    }

    public SegmentGroup19 setPhysicalOrLogicalState(PhysicalOrLogicalState physicalOrLogicalState) {
        this.physicalOrLogicalState = physicalOrLogicalState;  return this;
    }

    public List getPartiesToInstruction() {
        return partiesToInstruction;
    }

    public SegmentGroup19 setPartiesToInstruction(List partiesToInstruction) {
        this.partiesToInstruction = partiesToInstruction;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy