org.milyn.edi.unedifact.d02b.RECLAM.Reclam Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02b.RECLAM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import java.util.List;
import org.milyn.edi.unedifact.d02b.common.SectionControl;
import org.milyn.edi.unedifact.d02b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d02b.common.FreeText;
import org.milyn.edi.unedifact.d02b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d02b.common.MonetaryAmount;
import org.milyn.edi.unedifact.d02b.common.PercentageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Reclam implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private List segmentGroup1;
private List segmentGroup2;
private SectionControl sectionControl1;
private List dateTimePeriod;
private List freeText;
private List segmentGroup3;
private PlaceLocationIdentification placeLocationIdentification;
private MonetaryAmount monetaryAmount;
private PercentageDetails percentageDetails;
private List segmentGroup4;
private SectionControl sectionControl2;
private List segmentGroup8;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
segmentGroup1Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
segmentGroup2Inst.write(nodeWriter, delimiters);
}
}
if(sectionControl1 != null) {
nodeWriter.write("UNS");
nodeWriter.write(delimiters.getField());
sectionControl1.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
segmentGroup3Inst.write(nodeWriter, delimiters);
}
}
if(placeLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentification.write(nodeWriter, delimiters);
}
if(monetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmount.write(nodeWriter, delimiters);
}
if(percentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetails.write(nodeWriter, delimiters);
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
if(sectionControl2 != null) {
nodeWriter.write("UNS");
nodeWriter.write(delimiters.getField());
sectionControl2.write(nodeWriter, delimiters);
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Reclam setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public List getSegmentGroup2() {
return segmentGroup2;
}
public Reclam setSegmentGroup2(List segmentGroup2) {
this.segmentGroup2 = segmentGroup2; return this;
}
public SectionControl getSectionControl1() {
return sectionControl1;
}
public Reclam setSectionControl1(SectionControl sectionControl1) {
this.sectionControl1 = sectionControl1; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public Reclam setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getFreeText() {
return freeText;
}
public Reclam setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public Reclam setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public PlaceLocationIdentification getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public Reclam setPlaceLocationIdentification(PlaceLocationIdentification placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public MonetaryAmount getMonetaryAmount() {
return monetaryAmount;
}
public Reclam setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public PercentageDetails getPercentageDetails() {
return percentageDetails;
}
public Reclam setPercentageDetails(PercentageDetails percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public Reclam setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public SectionControl getSectionControl2() {
return sectionControl2;
}
public Reclam setSectionControl2(SectionControl sectionControl2) {
this.sectionControl2 = sectionControl2; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public Reclam setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
}