Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Link


  protected Element links2XML(Links links) {
    Element linksElement = createBPELElement("links");
         
    for( Iterator i = links.getChildren().iterator(); i.hasNext(); ){
      Link link = (Link)i.next();
      linksElement.appendChild(link2XML(link));       
    }
   
    // serialize local namespace prefixes to XML
    bpelNamespacePrefixManager.serializePrefixes(links, linksElement);     
View Full Code Here


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetLink(Link newLink, NotificationChain msgs) {
    Link oldLink = link;
    link = newLink;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.SOURCE__LINK, oldLink, newLink);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

        if (result == null) result = caseWSDLElement(invoke);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.LINK: {
        Link link = (Link)theEObject;
        Object result = caseLink(link);
        if (result == null) result = caseExtensibleElement(link);
        if (result == null) result = caseExtensibleElement_1(link);
        if (result == null) result = caseWSDLElement(link);
        if (result == null) result = defaultCase(theEObject);
View Full Code Here

      while (container != null) {
        if (container instanceof Flow) {
          Links links =((Flow)container).getLinks();
          if (links != null) {
            for (Iterator it = links.getChildren().iterator(); it.hasNext(); ) {
              Link candidate = (Link)it.next();    
              if (candidate.getName().equals(linkName))
                return candidate;
            }
          }
        }
        container = container.eContainer();
View Full Code Here

        Targets targets = BPELFactory.eINSTANCE.createTargets();
        activity.setTargets(targets);
        for(int i=0; i < flowActivity.targets().length; i++){
          FlowLinkTarget linkTarget = flowActivity.targets()[i];
          if (!linkTarget.name().equals("")){
            Link link = linkMap.get(linkTarget.name());
            if (link == null){
              link = BPELFactory.eINSTANCE.createLink();
              link.setName(linkTarget.name());
              linkMap.put(linkTarget.name(), link);
              flow.getLinks().getChildren().add(link);
            }           
            Target target = BPELFactory.eINSTANCE.createTarget();
            target.setLink(link);
            target.setActivity(activity)
            targets.getChildren().add(target);
          }
        }       
      }     
      if (flowActivity.sources().length > 0){
        Sources sources = BPELFactory.eINSTANCE.createSources();
        activity.setSources(sources);     
        for(int i=0; i < flowActivity.sources().length; i++){
          FlowLinkSource linkSource = flowActivity.sources()[i];
          Link link = linkMap.get(linkSource.name());
          if (link == null){
            link = BPELFactory.eINSTANCE.createLink();
            link.setName(linkSource.name());
            linkMap.put(linkSource.name(), link);
            flow.getLinks().getChildren().add(link);
          }                           
          Source source = BPELFactory.eINSTANCE.createSource();
          source.setLink(link);
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetLink(Link newLink, NotificationChain msgs) {
    Link oldLink = link;
    link = newLink;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.TARGET__LINK, oldLink, newLink);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

TOP

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

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.