Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.ServiceRef


           
    }

   
    if (from.getServiceRef() != null) {
      ServiceRef serviceRef = from.getServiceRef();
      Element serviceRefElement = createBPELElement("service-ref");
      String referenceScheme = serviceRef.getReferenceScheme();
      if (referenceScheme != null) {
        serviceRefElement.setAttribute("reference-scheme", referenceScheme);
      }
      if (serviceRef.getValue() != null) {
        Object value = serviceRef.getValue();
        if (value instanceof ExtensibilityElement) {
          ExtensibilityElement extensibilityElement = (ExtensibilityElement)value;
          BPELExtensionSerializer serializer = null;
          QName qname = extensibilityElement.getElementType();
          try {
              serializer=(BPELExtensionSerializer)extensionRegistry.querySerializer(ExtensibleElement.class,qname);
          } catch (WSDLException e) {
          }
         
          if (serializer != null) {
            // Deserialize the DOM element and add the new Extensibility element to the parent
            // ExtensibleElement
            DocumentFragment fragment=document.createDocumentFragment();
            try {
                serializer.marshall(ExtensibleElement.class,qname,extensibilityElement,fragment,process,extensionRegistry);
              Element child = (Element)fragment.getFirstChild();
              serviceRefElement.appendChild(child);
            } catch (WSDLException e) {
              throw new WrappedException(e);
            }
          }
        } else {
          ServiceReferenceSerializer serializer = extensionRegistry.getServiceReferenceSerializer(referenceScheme);
          if (serializer != null) {
            DocumentFragment fragment=document.createDocumentFragment();
              serializer.marshall(value, fragment, process, from, this);
            Element child = (Element)fragment.getFirstChild();
            serviceRefElement.appendChild(child);
          } else {
            CDATASection cdata = BPELUtils.createCDATASection(document, serviceRef.getValue().toString());
            serviceRefElement.appendChild(cdata);
          }
        }
        fromElement.appendChild(serviceRefElement);
      }
View Full Code Here


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetServiceRef(ServiceRef newServiceRef, NotificationChain msgs) {
    ServiceRef oldServiceRef = serviceRef;
    serviceRef = newServiceRef;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.FROM__SERVICE_REF, oldServiceRef, newServiceRef);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

        if (result == null) result = caseWSDLElement(query);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.SERVICE_REF: {
        ServiceRef serviceRef = (ServiceRef)theEObject;
        Object result = caseServiceRef(serviceRef);
        if (result == null) result = caseExtensibleElement_1(serviceRef);
        if (result == null) result = caseWSDLElement(serviceRef);
        if (result == null) result = defaultCase(theEObject);
        return result;
View Full Code Here

TOP

Related Classes of org.eclipse.bpel.model.ServiceRef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.