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