Examples of XSDTypeDefinition


Examples of org.eclipse.xsd.XSDTypeDefinition

  /**
   * <!-- begin-user-doc --> <!-- end-user-doc -->
   * @generated
   */
  public void setType(XSDTypeDefinition newType) {
    XSDTypeDefinition oldType = type;
    type = newType;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, BPELPackage.VARIABLE__TYPE, oldType, type));
  }
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

    }

    // Set xsd type
    if (variableElement.hasAttribute("type")) {
      QName qName = BPELUtils.createAttributeValue(variableElement, "type");
      XSDTypeDefinition type = new XSDTypeDefinitionProxy(resource.getURI(), qName);
      variable.setType(type);           
    }
   
    // Set xsd element
    if (variableElement.hasAttribute("element")) {
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

   
    // See if there is an xsi:type attribue.
    if (fromElement.hasAttribute("xsi:type")) {
      QName qName = BPELUtils.createAttributeValue(fromElement, "xsi:type");
      XSDTypeDefinition type = new XSDTypeDefinitionProxy(resource.getURI(), qName);
      from.setType(type);           
    }
  }
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

    if (forEachElement.hasAttribute("counterName")) {
      Variable variable = BPELFactory.eINSTANCE.createVariable();
      // TODO: How to facade this ?
      variable.setName(forEachElement.getAttribute("counterName"));
      QName qName = new QName(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001, "unsignedInt");
      XSDTypeDefinition type = new XSDTypeDefinitionProxy(resource.getURI(), qName);
      variable.setType(type);
      forEach.setCounterName(variable);         
    }   

    // Set startCounterValue element
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

        typeNode.setProperty(XsdLexicon.NAMESPACE, type.getTargetNamespace());
        if (!isAnonymous) {
            typeNode.setProperty(XsdLexicon.NC_NAME, type.getName());
            registerForSymbolSpace(TYPE_DEFINITIONS, type.getTargetNamespace(), type.getName(), typeNode.getIdentifier());
        }
        XSDTypeDefinition baseType = type.getBaseType();
        if (baseType == type) {
            // The base type is the anytype ...
            baseType = type.getSchema()
                           .getSchemaForSchema()
                           .resolveComplexTypeDefinition("http://www.w3.org/2001/XMLSchema", "anyType");
        }
        if (baseType != null) {
            typeNode.setProperty(XsdLexicon.BASE_TYPE_NAME, baseType.getName());
            typeNode.setProperty(XsdLexicon.BASE_TYPE_NAMESPACE, baseType.getTargetNamespace());
        }
        typeNode.setProperty(XsdLexicon.ABSTRACT, type.isAbstract());
        typeNode.setProperty(XsdLexicon.MIXED, type.isMixed());

        @SuppressWarnings( "unchecked" )
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

        }

        declarationNode.setProperty(XsdLexicon.ABSTRACT, decl.isAbstract());
        declarationNode.setProperty(XsdLexicon.NILLABLE, decl.isNillable());

        XSDTypeDefinition type = decl.getType();
        if (type != null) {
            declarationNode.setProperty(XsdLexicon.TYPE_NAME, type.getName());
            declarationNode.setProperty(XsdLexicon.TYPE_NAMESPACE, type.getTargetNamespace());
            setReference(declarationNode, XsdLexicon.TYPE_REFERENCE, TYPE_DEFINITIONS, type.getTargetNamespace(), type.getName());
        }

        if (decl.getAnonymousTypeDefinition() == type) {
            // It's anonymous, so we need to process the definition here ...
            if (type instanceof XSDComplexTypeDefinition) {
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

            registerForSymbolSpace(ATTRIBUTE_DECLARATIONS,
                                   decl.getTargetNamespace(),
                                   decl.getName(),
                                   attributeDeclarationNode.getIdentifier());
        }
        XSDTypeDefinition type = decl.getType();
        if (type != null) {
            attributeDeclarationNode.setProperty(XsdLexicon.TYPE_NAME, type.getName());
            attributeDeclarationNode.setProperty(XsdLexicon.TYPE_NAMESPACE, type.getTargetNamespace());
        }
        processAnnotation(decl.getAnnotation(), attributeDeclarationNode);
        processNonSchemaAttributes(type, attributeDeclarationNode, IGNORED_ATTRIBUTES_ATTR_DECL);
        return attributeDeclarationNode;
    }
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

        //return (XSDSimpleTypeDefinition) getSimpleTypeIndex().get(qName);
    }

    public XSDTypeDefinition getTypeDefinition(QName qName) {
        XSDTypeDefinition type = getComplexTypeDefinition(qName);

        if (type == null) {
            type = getSimpleTypeDefinition(qName);
        }
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

        for (int i = 0; i < schemas.length; i++) {
            XSDSchema schema = schemas[i];

            for (Iterator t = schema.getTypeDefinitions().iterator(); t.hasNext();) {
                XSDTypeDefinition type = (XSDTypeDefinition) t.next();

                if (type instanceof XSDComplexTypeDefinition) {
                    QName qName = new QName(type.getTargetNamespace(), type.getName());
                    complexTypeIndex.put(qName, type);
                }
            }
        }
    }
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

        for (int i = 0; i < schemas.length; i++) {
            XSDSchema schema = schemas[i];

            for (Iterator t = schema.getTypeDefinitions().iterator(); t.hasNext();) {
                XSDTypeDefinition type = (XSDTypeDefinition) t.next();

                if (type instanceof XSDSimpleTypeDefinition) {
                    QName qName = new QName(type.getTargetNamespace(), type.getName());
                    simpleTypeIndex.put(qName, type);
                }
            }
        }
    }
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.