use of org.kie.dmn.model.api.BusinessContextElement in project drools by kiegroup.
the class BusinessContextElementConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
BusinessContextElement bce = (BusinessContextElement) parent;
if (bce.getURI() != null)
writer.addAttribute(URI, bce.getURI());
}
use of org.kie.dmn.model.api.BusinessContextElement in project drools by kiegroup.
the class BusinessContextElementConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
BusinessContextElement bce = (BusinessContextElement) parent;
if (bce.getURI() != null)
writer.addAttribute(URI, bce.getURI());
}
use of org.kie.dmn.model.api.BusinessContextElement in project drools by kiegroup.
the class BusinessContextElementConverter method assignAttributes.
@Override
protected void assignAttributes(HierarchicalStreamReader reader, Object parent) {
super.assignAttributes(reader, parent);
BusinessContextElement bce = (BusinessContextElement) parent;
String uri = reader.getAttribute(URI);
bce.setURI(uri);
}
use of org.kie.dmn.model.api.BusinessContextElement in project drools by kiegroup.
the class DefinitionsConverter method assignChildElement.
@Override
protected void assignChildElement(Object parent, String nodeName, Object child) {
Definitions def = (Definitions) parent;
if (IMPORT.equals(nodeName)) {
def.getImport().add((Import) child);
} else if (ITEM_DEFINITION.equals(nodeName)) {
def.getItemDefinition().add((ItemDefinition) child);
} else if (child instanceof DRGElement) {
def.getDrgElement().add((DRGElement) child);
} else if (child instanceof Artifact) {
def.getArtifact().add((Artifact) child);
} else if (ELEMENT_COLLECTION.equals(nodeName)) {
def.getElementCollection().add((ElementCollection) child);
} else if (child instanceof BusinessContextElement) {
def.getBusinessContextElement().add((BusinessContextElement) child);
} else if (child instanceof DMNDI) {
DMNDI dmndi = (DMNDI) child;
dmndi.normalize();
def.setDMNDI(dmndi);
} else {
super.assignChildElement(def, nodeName, child);
}
}
use of org.kie.dmn.model.api.BusinessContextElement in project drools by kiegroup.
the class BusinessContextElementConverter method writeAttributes.
@Override
protected void writeAttributes(HierarchicalStreamWriter writer, Object parent) {
super.writeAttributes(writer, parent);
BusinessContextElement bce = (BusinessContextElement) parent;
if (bce.getURI() != null)
writer.addAttribute(URI, bce.getURI());
}
Aggregations