org.milyn.edi.unedifact.d02a.common.MEMMembershipDetails Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.field.C942MembershipCategory;
import org.milyn.edi.unedifact.d02a.common.field.C944MembershipStatus;
import org.milyn.edi.unedifact.d02a.common.field.C945MembershipLevel;
import org.milyn.edi.unedifact.d02a.common.field.C203RateTariffClass;
import org.milyn.edi.unedifact.d02a.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 e7449MembershipTypeCodeQualifier;
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(e7449MembershipTypeCodeQualifier != null) {
nodeWriter.write(delimiters.escape(e7449MembershipTypeCodeQualifier.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 getE7449MembershipTypeCodeQualifier() {
return e7449MembershipTypeCodeQualifier;
}
public MEMMembershipDetails setE7449MembershipTypeCodeQualifier(String e7449MembershipTypeCodeQualifier) {
this.e7449MembershipTypeCodeQualifier = e7449MembershipTypeCodeQualifier; 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;
}
}