org.milyn.edi.unedifact.d98a.MEDRPT.SegmentGroup2 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.MEDRPT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.InformationRequired;
import org.milyn.edi.unedifact.d98a.common.GeneralIndicator;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.Reference;
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d98a.common.Status;
import org.milyn.edi.unedifact.d98a.common.Priority;
import org.milyn.edi.unedifact.d98a.common.Language;
import org.milyn.edi.unedifact.d98a.common.FreeText;
import org.milyn.edi.unedifact.d98a.common.TestMethod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup2 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private InformationRequired informationRequired;
private GeneralIndicator generalIndicator;
private List reference;
private DateTimePeriod dateTimePeriod;
private Status status;
private Priority priority;
private Language language;
private List freeText;
private TestMethod testMethod;
private List segmentGroup3;
private List segmentGroup4;
private List segmentGroup6;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(informationRequired != null) {
nodeWriter.write("IRQ");
nodeWriter.write(delimiters.getField());
informationRequired.write(nodeWriter, delimiters);
}
if(generalIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriod.write(nodeWriter, delimiters);
}
if(status != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
status.write(nodeWriter, delimiters);
}
if(priority != null) {
nodeWriter.write("PTY");
nodeWriter.write(delimiters.getField());
priority.write(nodeWriter, delimiters);
}
if(language != null) {
nodeWriter.write("LAN");
nodeWriter.write(delimiters.getField());
language.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(testMethod != null) {
nodeWriter.write("TEM");
nodeWriter.write(delimiters.getField());
testMethod.write(nodeWriter, delimiters);
}
if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
segmentGroup3Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
segmentGroup6Inst.write(nodeWriter, delimiters);
}
}
}
public InformationRequired getInformationRequired() {
return informationRequired;
}
public SegmentGroup2 setInformationRequired(InformationRequired informationRequired) {
this.informationRequired = informationRequired; return this;
}
public GeneralIndicator getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup2 setGeneralIndicator(GeneralIndicator generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup2 setReference(List reference) {
this.reference = reference; return this;
}
public DateTimePeriod getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup2 setDateTimePeriod(DateTimePeriod dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public Status getStatus() {
return status;
}
public SegmentGroup2 setStatus(Status status) {
this.status = status; return this;
}
public Priority getPriority() {
return priority;
}
public SegmentGroup2 setPriority(Priority priority) {
this.priority = priority; return this;
}
public Language getLanguage() {
return language;
}
public SegmentGroup2 setLanguage(Language language) {
this.language = language; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup2 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public TestMethod getTestMethod() {
return testMethod;
}
public SegmentGroup2 setTestMethod(TestMethod testMethod) {
this.testMethod = testMethod; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public SegmentGroup2 setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public SegmentGroup2 setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public List getSegmentGroup6() {
return segmentGroup6;
}
public SegmentGroup2 setSegmentGroup6(List segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy