Examples of XSDElementDeclaration


Examples of org.eclipse.xsd.XSDElementDeclaration

 
  @SuppressWarnings("unchecked")
  public void createNewException(Assign assign, Variable variable, Vector<XSDElementDeclaration> constructorArgElementMap, List<CtExpression<?>> constructorArgs){
    int argIndex = 0;
    for (CtExpression<?> arg : constructorArgs){
      XSDElementDeclaration el = constructorArgElementMap.get(argIndex);
      if (el != null){
        scan(arg);
        ASTNodeData argData = nodeDataStack.peek();
       
        From from = BPELFactory.eINSTANCE.createFrom();
        if (argData.xpathLiteralExpr != null){
          Expression expr = BPELFactory.eINSTANCE.createExpression();
          expr.setBody(argData.xpathLiteralExpr.evaluate());
          from.setExpression(expr);       
        } else if (argData.variable != null && argData.xpathExpr != null){
          Query query = BPELFactory.eINSTANCE.createQuery();
          query.setQueryLanguage(XPATH_NAMESPACE);
          query.setValue(argData.xpathExpr.evaluate());
          from.setVariable(argData.variable);
        }
       
        Query toQuery = BPELFactory.eINSTANCE.createQuery();
        toQuery.setQueryLanguage(XPATH_NAMESPACE);
        toQuery.setValue("/" + schemaNsPrefixMap.get(el.getTargetNamespace()) + ":" + el.getName());
       
        To to = BPELFactory.eINSTANCE.createTo();
        to.setVariable(variable);
        to.setQuery(toQuery);
       
View Full Code Here

Examples of org.eclipse.xsd.XSDElementDeclaration

   
    scanReferences(reference.getActualTypeArguments());
    scanReferences(reference.getParameterTypes());
   
    if (reference.getDeclaration() != null){
      XSDElementDeclaration el = methodElementDeclMap.get(reference.getDeclaration());
      if (el != null){
        execRefData.xsdPropElement = el;
        execRefData.xsdPropQName = new QName(el.getTargetNamespace(),el.getName(),schemaNsPrefixMap.get(el.getTargetNamespace()));
        execRefData.xsdType = execRefTypeData.xsdType;
        execRefData.xsdTypeQName = execRefTypeData.xsdTypeQName;
      }
      execRefData.flowActivity = methodFlowActivityMap.get(reference.getDeclaration())
      if (execRefData.flowActivity != null){
View Full Code Here

Examples of org.eclipse.xsd.XSDElementDeclaration

    //resolveTypeReference(reference.getType(), fieldRefData);
    fieldRefData.xsdType =  nodeDataStack.peek().xsdType;
    fieldRefData.xsdTypeQName =  nodeDataStack.peek().xsdTypeQName;
    fieldRefData.typeRefName = nodeDataStack.peek().typeRefName;
   
    XSDElementDeclaration el = fieldElementDeclMap.get(reference.getDeclaration());
    if (el != null){
      fieldRefData.xsdPropElement = el;
      fieldRefData.xsdPropQName = new QName(el.getTargetNamespace(),el.getName(),schemaNsPrefixMap.get(el.getTargetNamespace()));
    }   
   
    fieldRefData.variable = resolveVariable(fieldRefData.scopeStack,reference.getSimpleName());
    if (fieldRefData.variable != null){
      XpathVariableRefExpression xpathVarRef = xpathFactory.createVariableReference();
View Full Code Here

Examples of org.eclipse.xsd.XSDElementDeclaration

    refNodeData.typeRefName = reference.getType().getQualifiedName();
   
    refNodeData.xsdType = typeNodeData.xsdType;
    refNodeData.xsdTypeQName = typeNodeData.xsdTypeQName;
   
    XSDElementDeclaration el = this.fieldElementDeclMap.get(reference.getDeclaration());
    if (el != null){
      refNodeData.xsdPropElement = el;
      refNodeData.xsdPropQName = new QName(el.getTargetNamespace(),el.getName(),schemaNsPrefixMap.get(el.getTargetNamespace()));
    }   
   
    refNodeData.variable = resolveVariable(refNodeData.scopeStack,reference.getSimpleName());
    if (refNodeData.variable != null){
      XpathVariableRefExpression xpathVarRef = xpathFactory.createVariableReference();
View Full Code Here

Examples of org.eclipse.xsd.XSDElementDeclaration

          PortType portType = typePortTypeMap.get(e);
          portType.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,portType.getDocumentationElement()));
        }
        if (methodElementDeclMap.get(e) != null){
          XSDElementDeclaration elem = methodElementDeclMap.get(e);
          elem.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,elem.getElement()));
        }
        if (fieldElementDeclMap.get(e) != null){
          XSDElementDeclaration elem = fieldElementDeclMap.get(e);
          elem.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,elem.getElement()));
        }
        if (fieldVariableMap.get(e) != null){
          Variable variable = fieldVariableMap.get(e);
          variable.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,variable.getElement()));
        }
        if (methodOperationMap.get(e) != null){
          Operation operation = methodOperationMap.get(e);
          operation.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,operation.getElement()));
        }
        if (typeXSDComplexTypeMap.get(e) != null){
          XSDComplexTypeDefinition complexType = typeXSDComplexTypeMap.get(e);
          complexType.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,complexType.getElement()));
        }
        if (wsdlRpcLitResultMap.get(e) != null){
          Part part = wsdlRpcLitResultMap.get(e);
          part.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,part.getElement()));
        }
        if (wsdlDocLitWrapResultMap.get(e) != null){
          XSDElementDeclaration elem = wsdlDocLitWrapResultMap.get(e);
          elem.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,elem.getElement()));
        }
        if (wsdlRpcLitParamMap.get(e) != null){
          Part part = wsdlRpcLitParamMap.get(e);
          part.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,part.getElement()));
        }
        if (wsdlDocLitParamElemMap.get(e) != null){
          List<XSDElementDeclaration> elems = wsdlDocLitParamElemMap.get(e);
          for (XSDElementDeclaration elem : elems){
            elem.updateElement();
            fireAddMappingEvent(new JbprocessElementMapping(e,elem.getElement()));
          }
        }
        if (nodeDataStack.peek().activity != null){
          fireAddMappingEvent(new JbprocessElementMapping(e,nodeDataStack.peek().activity.getElement()));
        }
View Full Code Here

Examples of org.eclipse.xsd.XSDElementDeclaration

  /**
   * <!-- begin-user-doc --> <!-- end-user-doc -->
   * @generated
   */
  public void setXSDElement(XSDElementDeclaration newXSDElement) {
    XSDElementDeclaration oldXSDElement = xsdElement;
    xsdElement = newXSDElement;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, BPELPackage.VARIABLE__XSD_ELEMENT, oldXSDElement, xsdElement));
  }
View Full Code Here

Examples of org.eclipse.xsd.XSDElementDeclaration

    }
   
    // Set xsd element
    if (variableElement.hasAttribute("element")) {
      QName qName = BPELUtils.createAttributeValue(variableElement, "element");
      XSDElementDeclaration element = new XSDElementDeclarationProxy(resource.getURI(), qName);
      variable.setXSDElement(element);     
    }

    // from-spec
        Element fromElement = getBPELChildElementByLocalName(variableElement, "from");
View Full Code Here

Examples of org.eclipse.xsd.XSDElementDeclaration

      _catch.setFaultMessageType(messageType);
    }

    if (catchElement.hasAttribute("faultElement")) {
      QName qName = BPELUtils.createAttributeValue(catchElement,"faultElement");
      XSDElementDeclaration element = new XSDElementDeclarationProxy(resource.getURI(), qName);
      _catch.setFaultElement(element);
    }

    // Set Activities   
    NodeList catchElements = catchElement.getChildNodes();
View Full Code Here

Examples of org.eclipse.xsd.XSDElementDeclaration

     
      XSDComplexTypeDefinition complexType = scanner.typeXSDComplexTypeMap.get(ctClass);
      XSDParticle parentParticle = (XSDParticle)complexType.getContent();
      XSDModelGroup parentModelGroup = (XSDModelGroup)parentParticle.getContent();
      XSDParticle localElementParticle = (XSDParticle)parentModelGroup.getContents().get(0);
      XSDElementDeclaration elementdecl = (XSDElementDeclaration)localElementParticle.getContent();
      assertTrue(elementdecl.getName().equals("myField"));
      assertTrue(elementdecl.getTargetNamespace().equals(ctPackage.getQualifiedName()));     
    }catch(Exception e){
      System.err.println("Exception: " + e.getMessage());
      assertTrue(false);
    }     
  }
View Full Code Here

Examples of org.eclipse.xsd.XSDElementDeclaration

            declarationNode = parentNode.addNode(decl.getName(), XsdLexicon.ELEMENT_DECLARATION);
            declarationNode.setProperty(XsdLexicon.NC_NAME, decl.getName());
            declarationNode.setProperty(XsdLexicon.NAMESPACE, decl.getTargetNamespace());
        } else {
            assert decl.isFeatureReference() : "expected element reference";
            XSDElementDeclaration resolved = decl.getResolvedElementDeclaration();
            declarationNode = parentNode.addNode(resolved.getName(), XsdLexicon.ELEMENT_DECLARATION);
            declarationNode.setProperty(XsdLexicon.REF_NAME, resolved.getName());
            declarationNode.setProperty(XsdLexicon.REF_NAMESPACE, resolved.getTargetNamespace());
            setReference(declarationNode, XsdLexicon.REF, ELEMENT_DECLARATION, resolved.getTargetNamespace(), resolved.getName());
        }
        if (decl.isGlobal()) {
            registerForSymbolSpace(ELEMENT_DECLARATION,
                                   decl.getTargetNamespace(),
                                   decl.getName(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.