org.milyn.edi.unedifact.d99b.COPARN.SegmentGroup13 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.COPARN;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.Damage;
import org.milyn.edi.unedifact.d99b.common.ComponentDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup13 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 SegmentGroup13 setDamage(Damage damage) {
this.damage = damage; return this;
}
public ComponentDetails getComponentDetails() {
return componentDetails;
}
public SegmentGroup13 setComponentDetails(ComponentDetails componentDetails) {
this.componentDetails = componentDetails; return this;
}
}