Search in sources :

Example 1 with JSITArtifact

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

the class NodeEntriesFactory method getAssociations.

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

Example 2 with JSITArtifact

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

ArrayList (java.util.ArrayList)2 JSITArtifact (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITArtifact)2 JSITAssociation (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITAssociation)1 JSITTextAnnotation (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITTextAnnotation)1