Search in sources :

Example 6 with JSITTextAnnotation

use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITTextAnnotation 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

JSITTextAnnotation (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITTextAnnotation)6 TextAnnotation (org.kie.workbench.common.dmn.api.definition.model.TextAnnotation)3 ArrayList (java.util.ArrayList)2 Node (org.kie.workbench.common.stunner.core.graph.Node)2 View (org.kie.workbench.common.stunner.core.graph.content.view.View)2 HashMap (java.util.HashMap)1 List (java.util.List)1 Map (java.util.Map)1 Objects (java.util.Objects)1 Optional (java.util.Optional)1 Consumer (java.util.function.Consumer)1 Collectors (java.util.stream.Collectors)1 Stream (java.util.stream.Stream)1 StreamSupport (java.util.stream.StreamSupport)1 PostConstruct (javax.annotation.PostConstruct)1 ApplicationScoped (javax.enterprise.context.ApplicationScoped)1 Inject (javax.inject.Inject)1 XMLConstants (javax.xml.XMLConstants)1 QName (javax.xml.namespace.QName)1 Js (jsinterop.base.Js)1