Search in sources :

Example 26 with JSITDefinitions

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

the class NodeEntriesFactory method getTextAnnotations.

private List<JSITTextAnnotation> getTextAnnotations(final JSITDefinitions definitions) {
    final List<JSITTextAnnotation> textAnnotations = new ArrayList<>();
    final List<JSITArtifact> artifacts = definitions.getArtifact();
    forEach(artifacts, artifact -> {
        if (JSITTextAnnotation.instanceOf(artifact)) {
            final JSITTextAnnotation annotation = Js.uncheckedCast(artifact);
            textAnnotations.add(annotation);
        }
    });
    return textAnnotations;
}
Also used : JSITTextAnnotation(org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITTextAnnotation) JSITArtifact(org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITArtifact) ArrayList(java.util.ArrayList)

Aggregations

JSITDefinitions (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITDefinitions)18 HashMap (java.util.HashMap)14 Map (java.util.Map)13 ArrayList (java.util.ArrayList)12 JSITImport (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITImport)12 JSITDRGElement (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITDRGElement)10 Inject (javax.inject.Inject)8 Js (jsinterop.base.Js)8 JSITItemDefinition (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITItemDefinition)8 Objects (java.util.Objects)7 Optional (java.util.Optional)7 QName (javax.xml.namespace.QName)7 Definitions (org.kie.workbench.common.dmn.api.definition.model.Definitions)7 PMMLDocumentMetadata (org.kie.workbench.common.dmn.api.editors.included.PMMLDocumentMetadata)7 ClientRuntimeError (org.kie.workbench.common.stunner.core.client.service.ClientRuntimeError)7 ServiceCallback (org.kie.workbench.common.stunner.core.client.service.ServiceCallback)7 List (java.util.List)6 Collectors (java.util.stream.Collectors)6 ItemDefinition (org.kie.workbench.common.dmn.api.definition.model.ItemDefinition)6 MainJs (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.MainJs)6