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

org.milyn.edi.unedifact.d96a.CONDRA.SegmentGroup6 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.CONDRA;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d96a.common.StructureIdentification;    
import java.util.List;    
import org.milyn.edi.unedifact.d96a.common.GeneralIndicator;    
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d96a.common.ItemDescription;    
import org.milyn.edi.unedifact.d96a.common.Quantity;    
import org.milyn.edi.unedifact.d96a.common.ContactInformation;    
import org.milyn.edi.unedifact.d96a.common.AuthenticationResult;    
import org.milyn.edi.unedifact.d96a.common.AgreementIdentification;    
import org.milyn.edi.unedifact.d96a.common.PartiesToInstruction;    
import org.milyn.edi.unedifact.d96a.common.RequirementsAndConditions;    
import org.milyn.edi.unedifact.d96a.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d96a.common.Dimensions;    
import org.milyn.edi.unedifact.d96a.common.Measurements;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup6 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private StructureIdentification structureIdentification;
    private List generalIndicator;
    private List dateTimePeriod;
    private ItemDescription itemDescription;
    private List quantity;
    private ContactInformation contactInformation;
    private List authenticationResult;
    private List agreementIdentification;
    private List partiesToInstruction;
    private List requirementsAndConditions;
    private List placeLocationIdentification;
    private List dimensions;
    private Measurements measurements;
    private List segmentGroup7;

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

        if(structureIdentification != null) {
            nodeWriter.write("BII");
            nodeWriter.write(delimiters.getField());
            structureIdentification.write(nodeWriter, delimiters);
        }
        if(generalIndicator != null && !generalIndicator.isEmpty()) {
            for(GeneralIndicator generalIndicatorInst : generalIndicator) {
                nodeWriter.write("GIS");
                nodeWriter.write(delimiters.getField());
                generalIndicatorInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(itemDescription != null) {
            nodeWriter.write("IMD");
            nodeWriter.write(delimiters.getField());
            itemDescription.write(nodeWriter, delimiters);
        }
        if(quantity != null && !quantity.isEmpty()) {
            for(Quantity quantityInst : quantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                quantityInst.write(nodeWriter, delimiters);
            }
        }
        if(contactInformation != null) {
            nodeWriter.write("CTA");
            nodeWriter.write(delimiters.getField());
            contactInformation.write(nodeWriter, delimiters);
        }
        if(authenticationResult != null && !authenticationResult.isEmpty()) {
            for(AuthenticationResult authenticationResultInst : authenticationResult) {
                nodeWriter.write("AUT");
                nodeWriter.write(delimiters.getField());
                authenticationResultInst.write(nodeWriter, delimiters);
            }
        }
        if(agreementIdentification != null && !agreementIdentification.isEmpty()) {
            for(AgreementIdentification agreementIdentificationInst : agreementIdentification) {
                nodeWriter.write("AGR");
                nodeWriter.write(delimiters.getField());
                agreementIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(partiesToInstruction != null && !partiesToInstruction.isEmpty()) {
            for(PartiesToInstruction partiesToInstructionInst : partiesToInstruction) {
                nodeWriter.write("INP");
                nodeWriter.write(delimiters.getField());
                partiesToInstructionInst.write(nodeWriter, delimiters);
            }
        }
        if(requirementsAndConditions != null && !requirementsAndConditions.isEmpty()) {
            for(RequirementsAndConditions requirementsAndConditionsInst : requirementsAndConditions) {
                nodeWriter.write("RCS");
                nodeWriter.write(delimiters.getField());
                requirementsAndConditionsInst.write(nodeWriter, delimiters);
            }
        }
        if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(dimensions != null && !dimensions.isEmpty()) {
            for(Dimensions dimensionsInst : dimensions) {
                nodeWriter.write("DIM");
                nodeWriter.write(delimiters.getField());
                dimensionsInst.write(nodeWriter, delimiters);
            }
        }
        if(measurements != null) {
            nodeWriter.write("MEA");
            nodeWriter.write(delimiters.getField());
            measurements.write(nodeWriter, delimiters);
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public StructureIdentification getStructureIdentification() {
        return structureIdentification;
    }

    public SegmentGroup6 setStructureIdentification(StructureIdentification structureIdentification) {
        this.structureIdentification = structureIdentification;  return this;
    }

    public List getGeneralIndicator() {
        return generalIndicator;
    }

    public SegmentGroup6 setGeneralIndicator(List generalIndicator) {
        this.generalIndicator = generalIndicator;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup6 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public ItemDescription getItemDescription() {
        return itemDescription;
    }

    public SegmentGroup6 setItemDescription(ItemDescription itemDescription) {
        this.itemDescription = itemDescription;  return this;
    }

    public List getQuantity() {
        return quantity;
    }

    public SegmentGroup6 setQuantity(List quantity) {
        this.quantity = quantity;  return this;
    }

    public ContactInformation getContactInformation() {
        return contactInformation;
    }

    public SegmentGroup6 setContactInformation(ContactInformation contactInformation) {
        this.contactInformation = contactInformation;  return this;
    }

    public List getAuthenticationResult() {
        return authenticationResult;
    }

    public SegmentGroup6 setAuthenticationResult(List authenticationResult) {
        this.authenticationResult = authenticationResult;  return this;
    }

    public List getAgreementIdentification() {
        return agreementIdentification;
    }

    public SegmentGroup6 setAgreementIdentification(List agreementIdentification) {
        this.agreementIdentification = agreementIdentification;  return this;
    }

    public List getPartiesToInstruction() {
        return partiesToInstruction;
    }

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

    public List getRequirementsAndConditions() {
        return requirementsAndConditions;
    }

    public SegmentGroup6 setRequirementsAndConditions(List requirementsAndConditions) {
        this.requirementsAndConditions = requirementsAndConditions;  return this;
    }

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

    public SegmentGroup6 setPlaceLocationIdentification(List placeLocationIdentification) {
        this.placeLocationIdentification = placeLocationIdentification;  return this;
    }

    public List getDimensions() {
        return dimensions;
    }

    public SegmentGroup6 setDimensions(List dimensions) {
        this.dimensions = dimensions;  return this;
    }

    public Measurements getMeasurements() {
        return measurements;
    }

    public SegmentGroup6 setMeasurements(Measurements measurements) {
        this.measurements = measurements;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

    public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy