org.milyn.edi.unedifact.d02a.BUSCRD.SegmentGroup15 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.BUSCRD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.Status;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.Attribute;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup15 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Status status;
private List attribute;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(status != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
status.write(nodeWriter, delimiters);
}
if(attribute != null && !attribute.isEmpty()) {
for(Attribute attributeInst : attribute) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
attributeInst.write(nodeWriter, delimiters);
}
}
}
public Status getStatus() {
return status;
}
public SegmentGroup15 setStatus(Status status) {
this.status = status; return this;
}
public List getAttribute() {
return attribute;
}
public SegmentGroup15 setAttribute(List attribute) {
this.attribute = attribute; return this;
}
}