org.virtuslab.edi.unedifact.d96a.common.SGUSegmentUsageDetails Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.virtuslab.edi.unedifact.d96a.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 SGUSegmentUsageDetails implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e9166SegmentTag;
private String e7299RequirementDesignatorCoded;
private BigDecimal e6176MaximumNumberOfOccurrences;
private DABigDecimalDecoder e6176MaximumNumberOfOccurrencesEncoder;
private String e7168LevelNumber;
private String e1050SequenceNumber;
private String e1049MessageSectionCoded;
private String e4513MaintenanceOperationCoded;
public SGUSegmentUsageDetails() {
e6176MaximumNumberOfOccurrencesEncoder = new DABigDecimalDecoder();
}
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e9166SegmentTag != null) {
nodeWriter.write(delimiters.escape(e9166SegmentTag.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e7299RequirementDesignatorCoded != null) {
nodeWriter.write(delimiters.escape(e7299RequirementDesignatorCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e6176MaximumNumberOfOccurrences != null) {
nodeWriter.write(delimiters.escape(e6176MaximumNumberOfOccurrencesEncoder.encode(e6176MaximumNumberOfOccurrences, delimiters)));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e7168LevelNumber != null) {
nodeWriter.write(delimiters.escape(e7168LevelNumber.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e1050SequenceNumber != null) {
nodeWriter.write(delimiters.escape(e1050SequenceNumber.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e1049MessageSectionCoded != null) {
nodeWriter.write(delimiters.escape(e1049MessageSectionCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e4513MaintenanceOperationCoded != null) {
nodeWriter.write(delimiters.escape(e4513MaintenanceOperationCoded.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 getE9166SegmentTag() {
return e9166SegmentTag;
}
public SGUSegmentUsageDetails setE9166SegmentTag(String e9166SegmentTag) {
this.e9166SegmentTag = e9166SegmentTag; return this;
}
public String getE7299RequirementDesignatorCoded() {
return e7299RequirementDesignatorCoded;
}
public SGUSegmentUsageDetails setE7299RequirementDesignatorCoded(String e7299RequirementDesignatorCoded) {
this.e7299RequirementDesignatorCoded = e7299RequirementDesignatorCoded; return this;
}
public BigDecimal getE6176MaximumNumberOfOccurrences() {
return e6176MaximumNumberOfOccurrences;
}
public SGUSegmentUsageDetails setE6176MaximumNumberOfOccurrences(BigDecimal e6176MaximumNumberOfOccurrences) {
this.e6176MaximumNumberOfOccurrences = e6176MaximumNumberOfOccurrences; return this;
}
public String getE7168LevelNumber() {
return e7168LevelNumber;
}
public SGUSegmentUsageDetails setE7168LevelNumber(String e7168LevelNumber) {
this.e7168LevelNumber = e7168LevelNumber; return this;
}
public String getE1050SequenceNumber() {
return e1050SequenceNumber;
}
public SGUSegmentUsageDetails setE1050SequenceNumber(String e1050SequenceNumber) {
this.e1050SequenceNumber = e1050SequenceNumber; return this;
}
public String getE1049MessageSectionCoded() {
return e1049MessageSectionCoded;
}
public SGUSegmentUsageDetails setE1049MessageSectionCoded(String e1049MessageSectionCoded) {
this.e1049MessageSectionCoded = e1049MessageSectionCoded; return this;
}
public String getE4513MaintenanceOperationCoded() {
return e4513MaintenanceOperationCoded;
}
public SGUSegmentUsageDetails setE4513MaintenanceOperationCoded(String e4513MaintenanceOperationCoded) {
this.e4513MaintenanceOperationCoded = e4513MaintenanceOperationCoded; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy