org.milyn.edi.unedifact.d99b.MEDPRE.SegmentGroup9 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.MEDPRE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.GeneralIndicator;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.Identity;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.Priority;
import org.milyn.edi.unedifact.d99b.common.AgreementIdentification;
import org.milyn.edi.unedifact.d99b.common.Language;
import org.milyn.edi.unedifact.d99b.common.Status;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup9 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GeneralIndicator generalIndicator;
private List identity;
private List dateTimePeriod;
private Priority priority;
private AgreementIdentification agreementIdentification;
private Language language;
private Status status;
private List freeText;
private List segmentGroup10;
private SegmentGroup11 segmentGroup11;
private List segmentGroup12;
private List segmentGroup14;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(generalIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator.write(nodeWriter, delimiters);
}
if(identity != null && !identity.isEmpty()) {
for(Identity identityInst : identity) {
nodeWriter.write("IDE");
nodeWriter.write(delimiters.getField());
identityInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(priority != null) {
nodeWriter.write("PTY");
nodeWriter.write(delimiters.getField());
priority.write(nodeWriter, delimiters);
}
if(agreementIdentification != null) {
nodeWriter.write("AGR");
nodeWriter.write(delimiters.getField());
agreementIdentification.write(nodeWriter, delimiters);
}
if(language != null) {
nodeWriter.write("LAN");
nodeWriter.write(delimiters.getField());
language.write(nodeWriter, delimiters);
}
if(status != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
status.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null) {
segmentGroup11.write(nodeWriter, delimiters);
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
}
public GeneralIndicator getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup9 setGeneralIndicator(GeneralIndicator generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public List getIdentity() {
return identity;
}
public SegmentGroup9 setIdentity(List identity) {
this.identity = identity; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup9 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public Priority getPriority() {
return priority;
}
public SegmentGroup9 setPriority(Priority priority) {
this.priority = priority; return this;
}
public AgreementIdentification getAgreementIdentification() {
return agreementIdentification;
}
public SegmentGroup9 setAgreementIdentification(AgreementIdentification agreementIdentification) {
this.agreementIdentification = agreementIdentification; return this;
}
public Language getLanguage() {
return language;
}
public SegmentGroup9 setLanguage(Language language) {
this.language = language; return this;
}
public Status getStatus() {
return status;
}
public SegmentGroup9 setStatus(Status status) {
this.status = status; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup9 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup9 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public SegmentGroup11 getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup9 setSegmentGroup11(SegmentGroup11 segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup9 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public SegmentGroup9 setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
}