org.milyn.edi.unedifact.d05a.common.LINLineItem Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.field.C212ItemNumberIdentification;
import org.milyn.edi.unedifact.d05a.common.field.C829SubLineInformation;
import java.math.BigDecimal;
import org.milyn.javabean.decoders.DABigDecimalDecoder;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
import java.io.StringWriter;
import java.util.List;
import java.util.ArrayList;
import org.milyn.edisax.util.EDIUtils;
import org.milyn.edisax.model.internal.DelimiterType;
public class LINLineItem implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e1082LineItemIdentifier;
private String e1229ActionRequestNotificationDescriptionCode;
private C212ItemNumberIdentification c212ItemNumberIdentification;
private C829SubLineInformation c829SubLineInformation;
private BigDecimal e1222ConfigurationLevelNumber;
private DABigDecimalDecoder e1222ConfigurationLevelNumberEncoder;
private String e7083ConfigurationOperationCode;
public LINLineItem() {
e1222ConfigurationLevelNumberEncoder = new DABigDecimalDecoder();
}
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e1082LineItemIdentifier != null) {
nodeWriter.write(delimiters.escape(e1082LineItemIdentifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e1229ActionRequestNotificationDescriptionCode != null) {
nodeWriter.write(delimiters.escape(e1229ActionRequestNotificationDescriptionCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c212ItemNumberIdentification != null) {
c212ItemNumberIdentification.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c829SubLineInformation != null) {
c829SubLineInformation.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e1222ConfigurationLevelNumber != null) {
nodeWriter.write(delimiters.escape(e1222ConfigurationLevelNumberEncoder.encode(e1222ConfigurationLevelNumber, delimiters)));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e7083ConfigurationOperationCode != null) {
nodeWriter.write(delimiters.escape(e7083ConfigurationOperationCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeTokens.add(nodeWriter.toString());
writer.write(EDIUtils.concatAndTruncate(nodeTokens, DelimiterType.FIELD, delimiters));
writer.write(delimiters.getSegmentDelimiter());
writer.flush();
}
public String getE1082LineItemIdentifier() {
return e1082LineItemIdentifier;
}
public LINLineItem setE1082LineItemIdentifier(String e1082LineItemIdentifier) {
this.e1082LineItemIdentifier = e1082LineItemIdentifier; return this;
}
public String getE1229ActionRequestNotificationDescriptionCode() {
return e1229ActionRequestNotificationDescriptionCode;
}
public LINLineItem setE1229ActionRequestNotificationDescriptionCode(String e1229ActionRequestNotificationDescriptionCode) {
this.e1229ActionRequestNotificationDescriptionCode = e1229ActionRequestNotificationDescriptionCode; return this;
}
public C212ItemNumberIdentification getC212ItemNumberIdentification() {
return c212ItemNumberIdentification;
}
public LINLineItem setC212ItemNumberIdentification(C212ItemNumberIdentification c212ItemNumberIdentification) {
this.c212ItemNumberIdentification = c212ItemNumberIdentification; return this;
}
public C829SubLineInformation getC829SubLineInformation() {
return c829SubLineInformation;
}
public LINLineItem setC829SubLineInformation(C829SubLineInformation c829SubLineInformation) {
this.c829SubLineInformation = c829SubLineInformation; return this;
}
public BigDecimal getE1222ConfigurationLevelNumber() {
return e1222ConfigurationLevelNumber;
}
public LINLineItem setE1222ConfigurationLevelNumber(BigDecimal e1222ConfigurationLevelNumber) {
this.e1222ConfigurationLevelNumber = e1222ConfigurationLevelNumber; return this;
}
public String getE7083ConfigurationOperationCode() {
return e7083ConfigurationOperationCode;
}
public LINLineItem setE7083ConfigurationOperationCode(String e7083ConfigurationOperationCode) {
this.e7083ConfigurationOperationCode = e7083ConfigurationOperationCode; return this;
}
}