org.milyn.edi.unedifact.d11b.common.GRUSegmentGroupUsageDetails Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d11b.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
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 GRUSegmentGroupUsageDetails implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e9164GroupIdentifier;
private String e7299RequirementDesignatorCode;
private BigDecimal e6176OccurrencesMaximumNumber;
private DABigDecimalDecoder e6176OccurrencesMaximumNumberEncoder;
private String e4513MaintenanceOperationCode;
private String e1050SequencePositionIdentifier;
public GRUSegmentGroupUsageDetails() {
e6176OccurrencesMaximumNumberEncoder = new DABigDecimalDecoder();
}
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e9164GroupIdentifier != null) {
nodeWriter.write(delimiters.escape(e9164GroupIdentifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e7299RequirementDesignatorCode != null) {
nodeWriter.write(delimiters.escape(e7299RequirementDesignatorCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e6176OccurrencesMaximumNumber != null) {
nodeWriter.write(delimiters.escape(e6176OccurrencesMaximumNumberEncoder.encode(e6176OccurrencesMaximumNumber, delimiters)));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e4513MaintenanceOperationCode != null) {
nodeWriter.write(delimiters.escape(e4513MaintenanceOperationCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e1050SequencePositionIdentifier != null) {
nodeWriter.write(delimiters.escape(e1050SequencePositionIdentifier.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 getE9164GroupIdentifier() {
return e9164GroupIdentifier;
}
public GRUSegmentGroupUsageDetails setE9164GroupIdentifier(String e9164GroupIdentifier) {
this.e9164GroupIdentifier = e9164GroupIdentifier; return this;
}
public String getE7299RequirementDesignatorCode() {
return e7299RequirementDesignatorCode;
}
public GRUSegmentGroupUsageDetails setE7299RequirementDesignatorCode(String e7299RequirementDesignatorCode) {
this.e7299RequirementDesignatorCode = e7299RequirementDesignatorCode; return this;
}
public BigDecimal getE6176OccurrencesMaximumNumber() {
return e6176OccurrencesMaximumNumber;
}
public GRUSegmentGroupUsageDetails setE6176OccurrencesMaximumNumber(BigDecimal e6176OccurrencesMaximumNumber) {
this.e6176OccurrencesMaximumNumber = e6176OccurrencesMaximumNumber; return this;
}
public String getE4513MaintenanceOperationCode() {
return e4513MaintenanceOperationCode;
}
public GRUSegmentGroupUsageDetails setE4513MaintenanceOperationCode(String e4513MaintenanceOperationCode) {
this.e4513MaintenanceOperationCode = e4513MaintenanceOperationCode; return this;
}
public String getE1050SequencePositionIdentifier() {
return e1050SequencePositionIdentifier;
}
public GRUSegmentGroupUsageDetails setE1050SequencePositionIdentifier(String e1050SequencePositionIdentifier) {
this.e1050SequencePositionIdentifier = e1050SequencePositionIdentifier; return this;
}
}