org.milyn.edi.unedifact.d96a.COEDOR.SegmentGroup3 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d96a.COEDOR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d96a.common.Damage;
import org.milyn.edi.unedifact.d96a.common.ComponentDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup3 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Damage damage;
private ComponentDetails componentDetails;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(damage != null) {
nodeWriter.write("DAM");
nodeWriter.write(delimiters.getField());
damage.write(nodeWriter, delimiters);
}
if(componentDetails != null) {
nodeWriter.write("COD");
nodeWriter.write(delimiters.getField());
componentDetails.write(nodeWriter, delimiters);
}
}
public Damage getDamage() {
return damage;
}
public SegmentGroup3 setDamage(Damage damage) {
this.damage = damage; return this;
}
public ComponentDetails getComponentDetails() {
return componentDetails;
}
public SegmentGroup3 setComponentDetails(ComponentDetails componentDetails) {
this.componentDetails = componentDetails; return this;
}
}