Search in sources :

Example 11 with ImportedValues

use of org.kie.dmn.model.api.ImportedValues in project drools by kiegroup.

the class ImportedValuesConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    ImportedValues iv = (ImportedValues) parent;
    writeChildrenNode(writer, context, iv.getImportedElement(), IMPORTED_ELEMENT);
}
Also used : TImportedValues(org.kie.dmn.model.v1_1.TImportedValues) ImportedValues(org.kie.dmn.model.api.ImportedValues)

Example 12 with ImportedValues

use of org.kie.dmn.model.api.ImportedValues in project drools by kiegroup.

the class ImportedValuesConverter method writeAttributes.

@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
    super.writeAttributes(writer, parent);
    ImportedValues iv = (ImportedValues) parent;
    if (iv.getExpressionLanguage() != null)
        writer.addAttribute(EXPRESSION_LANGUAGE, iv.getExpressionLanguage());
}
Also used : ImportedValues(org.kie.dmn.model.api.ImportedValues) TImportedValues(org.kie.dmn.model.v1_4.TImportedValues)

Example 13 with ImportedValues

use of org.kie.dmn.model.api.ImportedValues in project drools by kiegroup.

the class ImportedValuesConverter method assignAttributes.

@Override
protected void assignAttributes(HierarchicalStreamReader reader, Object parent) {
    super.assignAttributes(reader, parent);
    ImportedValues iv = (ImportedValues) parent;
    String expressionLanguage = reader.getAttribute(EXPRESSION_LANGUAGE);
    iv.setExpressionLanguage(expressionLanguage);
}
Also used : TImportedValues(org.kie.dmn.model.v1_3.TImportedValues) ImportedValues(org.kie.dmn.model.api.ImportedValues)

Example 14 with ImportedValues

use of org.kie.dmn.model.api.ImportedValues in project drools by kiegroup.

the class ImportedValuesConverter method writeAttributes.

@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
    super.writeAttributes(writer, parent);
    ImportedValues iv = (ImportedValues) parent;
    if (iv.getExpressionLanguage() != null)
        writer.addAttribute(EXPRESSION_LANGUAGE, iv.getExpressionLanguage());
}
Also used : TImportedValues(org.kie.dmn.model.v1_3.TImportedValues) ImportedValues(org.kie.dmn.model.api.ImportedValues)

Aggregations

ImportedValues (org.kie.dmn.model.api.ImportedValues)14 TImportedValues (org.kie.dmn.model.v1_2.TImportedValues)5 TImportedValues (org.kie.dmn.model.v1_1.TImportedValues)3 TImportedValues (org.kie.dmn.model.v1_3.TImportedValues)3 TImportedValues (org.kie.dmn.model.v1_4.TImportedValues)3 Test (org.junit.Test)2 LiteralExpression (org.kie.dmn.model.api.LiteralExpression)2 TLiteralExpression (org.kie.dmn.model.v1_2.TLiteralExpression)2 IsLiteralExpression (org.kie.workbench.common.dmn.api.definition.model.IsLiteralExpression)2 QName (javax.xml.namespace.QName)1 Description (org.kie.workbench.common.dmn.api.property.dmn.Description)1 ExpressionLanguage (org.kie.workbench.common.dmn.api.property.dmn.ExpressionLanguage)1 Id (org.kie.workbench.common.dmn.api.property.dmn.Id)1 Text (org.kie.workbench.common.dmn.api.property.dmn.Text)1