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