Search in sources :

Example 1 with X_AD_Field

use of org.compiere.model.X_AD_Field in project adempiere by adempiere.

the class FieldElementHandler method create.

public void create(Properties ctx, TransformerHandler document) throws SAXException {
    int AD_Field_ID = Env.getContextAsInt(ctx, X_AD_Field.COLUMNNAME_AD_Field_ID);
    X_AD_Field m_Field = new X_AD_Field(ctx, AD_Field_ID, null);
    AttributesImpl atts = new AttributesImpl();
    createFieldBinding(atts, m_Field);
    PackOut packOut = (PackOut) ctx.get("PackOutProcess");
    if (m_Field.getAD_FieldGroup_ID() > 0) {
        packOut.createFieldGroupElement(m_Field.getAD_FieldGroup_ID(), document);
    }
    if (m_Field.getAD_Reference_ID() > 0) {
        packOut.createReference(m_Field.getAD_Reference_ID(), document);
    }
    if (m_Field.getAD_Reference_Value_ID() > 0) {
        packOut.createReference(m_Field.getAD_Reference_Value_ID(), document);
    }
    if (m_Field.getAD_Val_Rule_ID() > 0) {
        packOut.createDynamicRuleValidation(m_Field.getAD_Val_Rule_ID(), document);
    }
    document.startElement("", "", "field", atts);
    document.endElement("", "", "field");
}
Also used : AttributesImpl(org.xml.sax.helpers.AttributesImpl) X_AD_Field(org.compiere.model.X_AD_Field) PackOut(org.adempiere.pipo.PackOut)

Aggregations

PackOut (org.adempiere.pipo.PackOut)1 X_AD_Field (org.compiere.model.X_AD_Field)1 AttributesImpl (org.xml.sax.helpers.AttributesImpl)1