org.virtuslab.edi.unedifact.d96a.common.ELMSimpleDataElementDetails 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 ELMSimpleDataElementDetails implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e9150SimpleDataElementTag;
private String e9153SimpleDataElementCharacterRepresentationCoded;
private String e9155SimpleDataElementLengthTypeCoded;
private BigDecimal e9156SimpleDataElementMaximumLength;
private DABigDecimalDecoder e9156SimpleDataElementMaximumLengthEncoder;
private BigDecimal e9158SimpleDataElementMinimumLength;
private DABigDecimalDecoder e9158SimpleDataElementMinimumLengthEncoder;
private String e9161CodeSetIndicatorCoded;
private String e1507ClassDesignatorCoded;
private String e4513MaintenanceOperationCoded;
public ELMSimpleDataElementDetails() {
e9156SimpleDataElementMaximumLengthEncoder = new DABigDecimalDecoder();
e9158SimpleDataElementMinimumLengthEncoder = new DABigDecimalDecoder();
}
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e9150SimpleDataElementTag != null) {
nodeWriter.write(delimiters.escape(e9150SimpleDataElementTag.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e9153SimpleDataElementCharacterRepresentationCoded != null) {
nodeWriter.write(delimiters.escape(e9153SimpleDataElementCharacterRepresentationCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e9155SimpleDataElementLengthTypeCoded != null) {
nodeWriter.write(delimiters.escape(e9155SimpleDataElementLengthTypeCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e9156SimpleDataElementMaximumLength != null) {
nodeWriter.write(delimiters.escape(e9156SimpleDataElementMaximumLengthEncoder.encode(e9156SimpleDataElementMaximumLength, delimiters)));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e9158SimpleDataElementMinimumLength != null) {
nodeWriter.write(delimiters.escape(e9158SimpleDataElementMinimumLengthEncoder.encode(e9158SimpleDataElementMinimumLength, delimiters)));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e9161CodeSetIndicatorCoded != null) {
nodeWriter.write(delimiters.escape(e9161CodeSetIndicatorCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e1507ClassDesignatorCoded != null) {
nodeWriter.write(delimiters.escape(e1507ClassDesignatorCoded.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 getE9150SimpleDataElementTag() {
return e9150SimpleDataElementTag;
}
public ELMSimpleDataElementDetails setE9150SimpleDataElementTag(String e9150SimpleDataElementTag) {
this.e9150SimpleDataElementTag = e9150SimpleDataElementTag; return this;
}
public String getE9153SimpleDataElementCharacterRepresentationCoded() {
return e9153SimpleDataElementCharacterRepresentationCoded;
}
public ELMSimpleDataElementDetails setE9153SimpleDataElementCharacterRepresentationCoded(String e9153SimpleDataElementCharacterRepresentationCoded) {
this.e9153SimpleDataElementCharacterRepresentationCoded = e9153SimpleDataElementCharacterRepresentationCoded; return this;
}
public String getE9155SimpleDataElementLengthTypeCoded() {
return e9155SimpleDataElementLengthTypeCoded;
}
public ELMSimpleDataElementDetails setE9155SimpleDataElementLengthTypeCoded(String e9155SimpleDataElementLengthTypeCoded) {
this.e9155SimpleDataElementLengthTypeCoded = e9155SimpleDataElementLengthTypeCoded; return this;
}
public BigDecimal getE9156SimpleDataElementMaximumLength() {
return e9156SimpleDataElementMaximumLength;
}
public ELMSimpleDataElementDetails setE9156SimpleDataElementMaximumLength(BigDecimal e9156SimpleDataElementMaximumLength) {
this.e9156SimpleDataElementMaximumLength = e9156SimpleDataElementMaximumLength; return this;
}
public BigDecimal getE9158SimpleDataElementMinimumLength() {
return e9158SimpleDataElementMinimumLength;
}
public ELMSimpleDataElementDetails setE9158SimpleDataElementMinimumLength(BigDecimal e9158SimpleDataElementMinimumLength) {
this.e9158SimpleDataElementMinimumLength = e9158SimpleDataElementMinimumLength; return this;
}
public String getE9161CodeSetIndicatorCoded() {
return e9161CodeSetIndicatorCoded;
}
public ELMSimpleDataElementDetails setE9161CodeSetIndicatorCoded(String e9161CodeSetIndicatorCoded) {
this.e9161CodeSetIndicatorCoded = e9161CodeSetIndicatorCoded; return this;
}
public String getE1507ClassDesignatorCoded() {
return e1507ClassDesignatorCoded;
}
public ELMSimpleDataElementDetails setE1507ClassDesignatorCoded(String e1507ClassDesignatorCoded) {
this.e1507ClassDesignatorCoded = e1507ClassDesignatorCoded; return this;
}
public String getE4513MaintenanceOperationCoded() {
return e4513MaintenanceOperationCoded;
}
public ELMSimpleDataElementDetails setE4513MaintenanceOperationCoded(String e4513MaintenanceOperationCoded) {
this.e4513MaintenanceOperationCoded = e4513MaintenanceOperationCoded; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy