use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName in project kie-wb-common by kiegroup.
the class WrapperUtils method getWrappedJSITList.
public static JSITList getWrappedJSITList(final JSITList toWrap, final String prefix, final String localPart) {
final JSITList toReturn = Js.uncheckedCast(JsUtils.getWrappedElement(toWrap));
final JSIName jsiName = JSITList.getJSIName();
updateJSIName(jsiName, prefix, localPart);
JsUtils.setNameOnWrapped(toReturn, jsiName);
return toReturn;
}
use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName in project kie-wb-common by kiegroup.
the class WrapperUtils method getWrappedJSIDMNEdge.
public static JSIDMNEdge getWrappedJSIDMNEdge(final JSIDMNEdge toWrap) {
final JSIDMNEdge toReturn = Js.uncheckedCast(JsUtils.getWrappedElement(toWrap));
final JSIName jsiName = JSIDMNEdge.getJSIName();
updateJSIName(jsiName, "dmndi", "DMNEdge");
JsUtils.setNameOnWrapped(toReturn, jsiName);
return toReturn;
}
use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName in project kie-wb-common by kiegroup.
the class DMNMarshallerService method makeJSINameForDMN12.
private JSIName makeJSINameForDMN12() {
final org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName jsiName = JSITDefinitions.getJSIName();
jsiName.setPrefix("dmn");
jsiName.setLocalPart("definitions");
final String key = "{" + jsiName.getNamespaceURI() + "}" + jsiName.getLocalPart();
final String keyString = "{" + jsiName.getNamespaceURI() + "}" + jsiName.getPrefix() + ":" + jsiName.getLocalPart();
jsiName.setKey(key);
jsiName.setString(keyString);
return jsiName;
}
use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName in project kie-wb-common by kiegroup.
the class WrapperUtils method getWrappedJSIDMNStyle.
public static JSIDMNStyle getWrappedJSIDMNStyle(final JSIDMNStyle toWrap) {
final JSIDMNStyle toReturn = Js.uncheckedCast(JsUtils.getWrappedElement(toWrap));
final JSIName jsiName = JSIDMNStyle.getJSIName();
updateJSIName(jsiName, "dmndi", "DMNStyle");
JsUtils.setNameOnWrapped(toReturn, jsiName);
return toReturn;
}
use of org.kie.workbench.common.dmn.webapp.kogito.marshaller.mapper.JSIName in project kie-wb-common by kiegroup.
the class WrapperUtils method getWrappedJSITAssociation.
public static JSITAssociation getWrappedJSITAssociation(final JSITAssociation toWrap) {
final JSITAssociation toReturn = Js.uncheckedCast(JsUtils.getWrappedElement(toWrap));
final JSIName jsiName = JSITTextAnnotation.getJSIName();
updateJSIName(jsiName, "dmn", "association");
JsUtils.setNameOnWrapped(toReturn, jsiName);
return toReturn;
}
Aggregations