org.milyn.edi.unedifact.d99b.common.MEMMembershipDetails Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.field.C942MembershipCategory;
import org.milyn.edi.unedifact.d99b.common.field.C944MembershipStatus;
import org.milyn.edi.unedifact.d99b.common.field.C945MembershipLevel;
import org.milyn.edi.unedifact.d99b.common.field.C203RateTariffClass;
import org.milyn.edi.unedifact.d99b.common.field.C960ReasonForChange;
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 MEMMembershipDetails implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e7449MembershipQualifier;
private C942MembershipCategory c942MembershipCategory;
private C944MembershipStatus c944MembershipStatus;
private C945MembershipLevel c945MembershipLevel;
private C203RateTariffClass c203RateTariffClass;
private C960ReasonForChange c960ReasonForChange;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e7449MembershipQualifier != null) {
nodeWriter.write(delimiters.escape(e7449MembershipQualifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c942MembershipCategory != null) {
c942MembershipCategory.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c944MembershipStatus != null) {
c944MembershipStatus.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c945MembershipLevel != null) {
c945MembershipLevel.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c203RateTariffClass != null) {
c203RateTariffClass.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c960ReasonForChange != null) {
c960ReasonForChange.write(nodeWriter, delimiters);
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 getE7449MembershipQualifier() {
return e7449MembershipQualifier;
}
public MEMMembershipDetails setE7449MembershipQualifier(String e7449MembershipQualifier) {
this.e7449MembershipQualifier = e7449MembershipQualifier; return this;
}
public C942MembershipCategory getC942MembershipCategory() {
return c942MembershipCategory;
}
public MEMMembershipDetails setC942MembershipCategory(C942MembershipCategory c942MembershipCategory) {
this.c942MembershipCategory = c942MembershipCategory; return this;
}
public C944MembershipStatus getC944MembershipStatus() {
return c944MembershipStatus;
}
public MEMMembershipDetails setC944MembershipStatus(C944MembershipStatus c944MembershipStatus) {
this.c944MembershipStatus = c944MembershipStatus; return this;
}
public C945MembershipLevel getC945MembershipLevel() {
return c945MembershipLevel;
}
public MEMMembershipDetails setC945MembershipLevel(C945MembershipLevel c945MembershipLevel) {
this.c945MembershipLevel = c945MembershipLevel; return this;
}
public C203RateTariffClass getC203RateTariffClass() {
return c203RateTariffClass;
}
public MEMMembershipDetails setC203RateTariffClass(C203RateTariffClass c203RateTariffClass) {
this.c203RateTariffClass = c203RateTariffClass; return this;
}
public C960ReasonForChange getC960ReasonForChange() {
return c960ReasonForChange;
}
public MEMMembershipDetails setC960ReasonForChange(C960ReasonForChange c960ReasonForChange) {
this.c960ReasonForChange = c960ReasonForChange; return this;
}
}