Search in sources :

Example 11 with JSITItemDefinition

use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITItemDefinition in project kie-wb-common by kiegroup.

the class DMNMarshallerImportsClientHelper method getImportedItemDefinitions.

@Override
public List<JSITItemDefinition> getImportedItemDefinitions(final Map<JSITImport, JSITDefinitions> importDefinitions) {
    final List<JSITItemDefinition> itemDefinitions = new ArrayList<>();
    for (final Map.Entry<JSITImport, JSITDefinitions> entry : importDefinitions.entrySet()) {
        final JSITImport anImport = Js.uncheckedCast(entry.getKey());
        final JSITDefinitions definitions = Js.uncheckedCast(entry.getValue());
        final List<JSITItemDefinition> items = getItemDefinitionsWithNamespace(definitions, anImport);
        itemDefinitions.addAll(items);
    }
    return itemDefinitions;
}
Also used : ArrayList(java.util.ArrayList) JSITImport(org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITImport) HashMap(java.util.HashMap) Map(java.util.Map) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) JSITItemDefinition(org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITItemDefinition) JSITDefinitions(org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITDefinitions)

Aggregations

JSITItemDefinition (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITItemDefinition)10 ItemDefinition (org.kie.workbench.common.dmn.api.definition.model.ItemDefinition)7 ArrayList (java.util.ArrayList)4 JSITDefinitions (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITDefinitions)4 JSITImport (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITImport)4 HashMap (java.util.HashMap)3 QName (javax.xml.namespace.QName)3 Map (java.util.Map)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 Definitions (org.kie.workbench.common.dmn.api.definition.model.Definitions)2 Import (org.kie.workbench.common.dmn.api.definition.model.Import)2 PMMLDocumentMetadata (org.kie.workbench.common.dmn.api.editors.included.PMMLDocumentMetadata)2 Description (org.kie.workbench.common.dmn.api.property.dmn.Description)2 Id (org.kie.workbench.common.dmn.api.property.dmn.Id)2 Name (org.kie.workbench.common.dmn.api.property.dmn.Name)2 JSITUnaryTests (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITUnaryTests)2 Promise (elemental2.promise.Promise)1 Arrays (java.util.Arrays)1 Collections (java.util.Collections)1 Comparator (java.util.Comparator)1