コード例 #1
0
 private void createMessageTransformationApplicationAccessPoint(ApplicationType applicationType) {
   applicationType.getAccessPoint().add(element);
   AttributeUtil.setAttribute(
       element,
       "carnot:engine:path:separator",
       StructuredDataConstants.ACCESS_PATH_SEGMENT_SEPARATOR); // $NON-NLS-1$
   AttributeUtil.setBooleanAttribute(element, "carnot:engine:data:bidirectional", true);
   AttributeUtil.setAttribute(element, "RootElement", element.getId());
   AttributeUtil.setAttribute(element, "FullXPath", element.getId() + "/");
   TransformationProperty property = MappingFactory.eINSTANCE.createTransformationProperty();
   String xmlString = MappingModelUtil.transformEcore2XML(property);
   AttributeUtil.setAttribute(element, "messageTransformation:TransformationProperty", xmlString);
 }
コード例 #2
0
 private void createApplicationAccessPoint(IAccessPointOwner anOwner) {
   ApplicationType applicationType = (ApplicationType) anOwner;
   if (applicationType.isInteractive()) {
     createExternalWebApplicationAccessPoint(applicationType);
   } else {
     if (applicationType
         .getType()
         .getId()
         .equals(ModelerConstants.MESSAGE_TRANSFORMATION_APPLICATION_TYPE_ID)) {
       createMessageTransformationApplicationAccessPoint(applicationType);
     } else {
       applicationType.getAccessPoint().add(element);
     }
   }
 }