Search in sources :

Example 11 with JSIName

use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName in project kie-wb-common by kiegroup.

the class WrapperUtils method getWrappedJSITLiteralExpression.

public static JSITLiteralExpression getWrappedJSITLiteralExpression(final JSITLiteralExpression toWrap, final String prefix, final String localPart) {
    final JSITLiteralExpression toReturn = Js.uncheckedCast(JsUtils.getWrappedElement(toWrap));
    final JSIName jsiName = JSITLiteralExpression.getJSIName();
    updateJSIName(jsiName, prefix, localPart);
    JsUtils.setNameOnWrapped(toReturn, jsiName);
    return toReturn;
}
Also used : JSITLiteralExpression(org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITLiteralExpression) JSIName(org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName)

Example 12 with JSIName

use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName in project kie-wb-common by kiegroup.

the class WrapperUtils method getWrappedJSITAttachment.

public static JSITAttachment getWrappedJSITAttachment(final JSITAttachment attachment) {
    final JSITAttachment toReturn = Js.uncheckedCast(JsUtils.getWrappedElement(attachment));
    final JSIName jsiName = JSITAttachment.getJSIName();
    updateJSIName(jsiName, "kie", "attachment");
    JsUtils.setNameOnWrapped(toReturn, jsiName);
    return toReturn;
}
Also used : JSIName(org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName) JSITAttachment(org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.kie.JSITAttachment)

Example 13 with JSIName

use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName in project kie-wb-common by kiegroup.

the class WrapperUtils method getWrappedJSITDRGElement.

public static JSITDRGElement getWrappedJSITDRGElement(final JSITDRGElement toWrap, final String prefix, final String localPart) {
    final JSITDRGElement toReturn = Js.uncheckedCast(JsUtils.getWrappedElement(toWrap));
    final JSIName jsiName = JSITDRGElement.getJSIName();
    updateJSIName(jsiName, prefix, localPart);
    JsUtils.setNameOnWrapped(toReturn, jsiName);
    return toReturn;
}
Also used : JSITDRGElement(org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITDRGElement) JSIName(org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName)

Example 14 with JSIName

use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName in project kie-wb-common by kiegroup.

the class WrapperUtils method getWrappedJSITInvocation.

public static JSITInvocation getWrappedJSITInvocation(final JSITInvocation toWrap, final String prefix, final String localPart) {
    final JSITInvocation toReturn = Js.uncheckedCast(JsUtils.getWrappedElement(toWrap));
    final JSIName jsiName = JSITInvocation.getJSIName();
    updateJSIName(jsiName, prefix, localPart);
    JsUtils.setNameOnWrapped(toReturn, jsiName);
    return toReturn;
}
Also used : JSIName(org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName) JSITInvocation(org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITInvocation)

Example 15 with JSIName

use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName in project kie-wb-common by kiegroup.

the class WrapperUtils method getWrappedJSITComponentsWidthsExtension.

public static JSITComponentsWidthsExtension getWrappedJSITComponentsWidthsExtension(final JSITComponentsWidthsExtension componentsWidthsExtension) {
    final JSITComponentsWidthsExtension toReturn = Js.uncheckedCast(JsUtils.getWrappedElement(componentsWidthsExtension));
    final JSIName jsiName = JSITComponentsWidthsExtension.getJSIName();
    updateJSIName(jsiName, "kie", "ComponentsWidthsExtension");
    JsUtils.setNameOnWrapped(toReturn, jsiName);
    return toReturn;
}
Also used : JSITComponentsWidthsExtension(org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.kie.JSITComponentsWidthsExtension) JSIName(org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName)

Aggregations

JSIName (org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName)16 JSONString (com.google.gwt.json.client.JSONString)1 JSITAssociation (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITAssociation)1 JSITContext (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITContext)1 JSITDRGElement (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITDRGElement)1 JSITDecisionTable (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITDecisionTable)1 JSITFunctionDefinition (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITFunctionDefinition)1 JSITInvocation (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITInvocation)1 JSITList (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITList)1 JSITLiteralExpression (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITLiteralExpression)1 JSITRelation (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITRelation)1 JSITTextAnnotation (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmn12.JSITTextAnnotation)1 JSIDMNEdge (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmndi12.JSIDMNEdge)1 JSIDMNShape (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmndi12.JSIDMNShape)1 JSIDMNStyle (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.dmndi12.JSIDMNStyle)1 JSITAttachment (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.kie.JSITAttachment)1 JSITComponentsWidthsExtension (org.kie.workbench.common.dmn.webapp.kogito.marshaller.js.model.kie.JSITComponentsWidthsExtension)1