org.milyn.edi.unedifact.d06b.IPPOMO.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.IPPOMO;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.PartyIdentification;
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.Attribute;
import org.milyn.edi.unedifact.d06b.common.PercentageDetails;
import org.milyn.edi.unedifact.d06b.common.Reference;
import org.milyn.edi.unedifact.d06b.common.EmploymentDetails;
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.MembershipDetails;
import org.milyn.edi.unedifact.d06b.common.Quantity;
import org.milyn.edi.unedifact.d06b.common.Relationship;
import org.milyn.edi.unedifact.d06b.common.PlaceLocationIdentification;
import org.milyn.edi.unedifact.d06b.common.QueryAndResponse;
import org.milyn.edi.unedifact.d06b.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private PartyIdentification partyIdentification;
private ProcessingInformation processingInformation;
private List attribute;
private PercentageDetails percentageDetails;
private List reference;
private List employmentDetails;
private List dateTimePeriod;
private List membershipDetails;
private List quantity;
private Relationship relationship;
private PlaceLocationIdentification placeLocationIdentification;
private List queryAndResponse;
private List freeText;
private List segmentGroup8;
private List segmentGroup9;
private List segmentGroup10;
private List segmentGroup12;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(partyIdentification != null) {
nodeWriter.write("PNA");
nodeWriter.write(delimiters.getField());
partyIdentification.write(nodeWriter, delimiters);
}
if(processingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformation.write(nodeWriter, delimiters);
}
if(attribute != null && !attribute.isEmpty()) {
for(Attribute attributeInst : attribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attributeInst.write(nodeWriter, delimiters);
}
}
if(percentageDetails != null) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
percentageDetails.write(nodeWriter, delimiters);
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(employmentDetails != null && !employmentDetails.isEmpty()) {
for(EmploymentDetails employmentDetailsInst : employmentDetails) {
nodeWriter.write("EMP");
nodeWriter.write(delimiters.getField());
employmentDetailsInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(membershipDetails != null && !membershipDetails.isEmpty()) {
for(MembershipDetails membershipDetailsInst : membershipDetails) {
nodeWriter.write("MEM");
nodeWriter.write(delimiters.getField());
membershipDetailsInst.write(nodeWriter, delimiters);
}
}
if(quantity != null && !quantity.isEmpty()) {
for(Quantity quantityInst : quantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
quantityInst.write(nodeWriter, delimiters);
}
}
if(relationship != null) {
nodeWriter.write("REL");
nodeWriter.write(delimiters.getField());
relationship.write(nodeWriter, delimiters);
}
if(placeLocationIdentification != null) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
placeLocationIdentification.write(nodeWriter, delimiters);
}
if(queryAndResponse != null && !queryAndResponse.isEmpty()) {
for(QueryAndResponse queryAndResponseInst : queryAndResponse) {
nodeWriter.write("QRS");
nodeWriter.write(delimiters.getField());
queryAndResponseInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
segmentGroup9Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
segmentGroup10Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
segmentGroup12Inst.write(nodeWriter, delimiters);
}
}
}
public PartyIdentification getPartyIdentification() {
return partyIdentification;
}
public SegmentGroup7 setPartyIdentification(PartyIdentification partyIdentification) {
this.partyIdentification = partyIdentification; return this;
}
public ProcessingInformation getProcessingInformation() {
return processingInformation;
}
public SegmentGroup7 setProcessingInformation(ProcessingInformation processingInformation) {
this.processingInformation = processingInformation; return this;
}
public List getAttribute() {
return attribute;
}
public SegmentGroup7 setAttribute(List attribute) {
this.attribute = attribute; return this;
}
public PercentageDetails getPercentageDetails() {
return percentageDetails;
}
public SegmentGroup7 setPercentageDetails(PercentageDetails percentageDetails) {
this.percentageDetails = percentageDetails; return this;
}
public List getReference() {
return reference;
}
public SegmentGroup7 setReference(List reference) {
this.reference = reference; return this;
}
public List getEmploymentDetails() {
return employmentDetails;
}
public SegmentGroup7 setEmploymentDetails(List employmentDetails) {
this.employmentDetails = employmentDetails; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup7 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getMembershipDetails() {
return membershipDetails;
}
public SegmentGroup7 setMembershipDetails(List membershipDetails) {
this.membershipDetails = membershipDetails; return this;
}
public List getQuantity() {
return quantity;
}
public SegmentGroup7 setQuantity(List quantity) {
this.quantity = quantity; return this;
}
public Relationship getRelationship() {
return relationship;
}
public SegmentGroup7 setRelationship(Relationship relationship) {
this.relationship = relationship; return this;
}
public PlaceLocationIdentification getPlaceLocationIdentification() {
return placeLocationIdentification;
}
public SegmentGroup7 setPlaceLocationIdentification(PlaceLocationIdentification placeLocationIdentification) {
this.placeLocationIdentification = placeLocationIdentification; return this;
}
public List getQueryAndResponse() {
return queryAndResponse;
}
public SegmentGroup7 setQueryAndResponse(List queryAndResponse) {
this.queryAndResponse = queryAndResponse; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup7 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
public List getSegmentGroup9() {
return segmentGroup9;
}
public SegmentGroup7 setSegmentGroup9(List segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public List getSegmentGroup10() {
return segmentGroup10;
}
public SegmentGroup7 setSegmentGroup10(List segmentGroup10) {
this.segmentGroup10 = segmentGroup10; return this;
}
public List getSegmentGroup12() {
return segmentGroup12;
}
public SegmentGroup7 setSegmentGroup12(List segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
}