Examples of XSDTypeDefinition


Examples of org.eclipse.xsd.XSDTypeDefinition

    {
      EClassifier nextEClassifier = (EClassifier)eClassifiers.get(index);
      if (!name.equals(nextEClassifier.getName())) break;
      if (extendedMetaData.getName(eClassifier).equals(extendedMetaData.getName(nextEClassifier)))
      {
        XSDTypeDefinition nextXSDTypeDefinition = getXSDTypeDefinition(nextEClassifier);
        if (!sameType(nextXSDTypeDefinition, xsdTypeDefinition))
        {
          //System.out.println("###EClassifier mismatch: ");
          //System.out.println("    old: " + extendedMetaData.getName(nextEClassifier));
          //System.out.println("    new: " + extendedMetaData.getName(eClassifier));
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

      if (xsdComponent != null && xsdComponent instanceof XSDParticle)
      {
        XSDTerm xsdTerm = ((XSDParticle)xsdComponent).getTerm();
        if (xsdTerm instanceof XSDElementDeclaration)
        {
          XSDTypeDefinition elementTypeDefinition = getEffectiveTypeDefinition(xsdComponent, (XSDElementDeclaration)xsdTerm);
          EClassifier eClassifier = getEClassifier(elementTypeDefinition);
          if (elementTypeDefinition instanceof XSDSimpleTypeDefinition && eClassifier instanceof EClass)
          {
            eReference.setContainment(true);
          }
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

    }
    return result;
  }
 
  protected XSDTypeDefinition getEffectiveTypeDefinition(XSDComponent xsdComponent, XSDFeature xsdFeature) {
    XSDTypeDefinition typeDef = getEcoreTypeQNameAttribute(xsdComponent, "dataType");

    String isString = getEcoreAttribute(xsdComponent, xsdFeature, "string");
    if ("true".equalsIgnoreCase(isString)) {
      typeDef =
        xsdFeature.resolveSimpleTypeDefinition(rootSchema.getSchemaForSchemaNamespace(), "string");
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

    if (msg != null) {
      variableElement.setAttribute("messageType", bpelNamespacePrefixManager.qNameToString(variable, msg.getQName()));
    }
       
    if (variable.getType() != null) {
      XSDTypeDefinition type = variable.getType();
      QName qname = new QName(type.getTargetNamespace(), type.getName());
      variableElement.setAttribute("type", bpelNamespacePrefixManager.qNameToString(variable, qname));
    }
       
    if (variable.getXSDElement() != null) {
      XSDElementDeclaration element = variable.getXSDElement();
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

        fromElement.appendChild(cdata);
      }     
    }
   
    if (from.getType() != null) {
      XSDTypeDefinition type = from.getType();
      QName qname = new QName(type.getTargetNamespace(), type.getName());
      fromElement.setAttribute("xsi:type", bpelNamespacePrefixManager.qNameToString(from, qname));
    }
   
   
    // serialize local namespace prefixes to XML
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

  /**
   * @customized
   */
  public Object getType() {
    if (type instanceof XSDTypeDefinition && ((XSDTypeDefinition)type).eIsProxy()) {
      XSDTypeDefinition oldType = (XSDTypeDefinition)type;
      type = (XSDTypeDefinition)eResolveProxy((InternalEObject)type);
      if (type != oldType) {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, MessagepropertiesPackage.PROPERTY_ALIAS__TYPE, oldType, type));
      }
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

    if (element != null && element.hasAttribute(MessagepropertiesConstants.PROPERTY_ALIAS_TYPE_ATTRIBUTE))
      {
      if (definition != null)
      {
          QName typeQName = createQName(definition, element.getAttribute(MessagepropertiesConstants.PROPERTY_ALIAS_TYPE_ATTRIBUTE));
          XSDTypeDefinition newType = ((DefinitionImpl)definition).resolveTypeDefinition(typeQName.getNamespaceURI(), typeQName.getLocalPart());         
          if (newType != null && newType != getType())
            setType(newType);       
      }
      } else {
        setType(null);
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

    if (element != null && element.hasAttribute(MessagepropertiesConstants.PROPERTY_TYPE_ATTRIBUTE))
      {
        Definition definition = getEnclosingDefinition();
        QName qname = createQName(definition, element.getAttribute(MessagepropertiesConstants.PROPERTY_TYPE_ATTRIBUTE));
        if (qname != null) {
          XSDTypeDefinition xsdType = ((DefinitionImpl) definition).resolveTypeDefinition(qname.getNamespaceURI(), qname.getLocalPart());
          if (xsdType != null && getType() != xsdType) {
            setType(xsdType);
          }
        }
      }
View Full Code Here

Examples of org.eclipse.xsd.XSDTypeDefinition

          if (eAttribute == null || eAttribute == MessagepropertiesPackage.eINSTANCE.getProperty_Type())
          {
              Object type = getType();
              if (type instanceof XSDTypeDefinition)
              {
                XSDTypeDefinition xsdType = (XSDTypeDefinition) type;
                String uri = xsdType.getURI();
                niceSetAttributeURIValue(theElement, MessagepropertiesConstants.PROPERTY_TYPE_ATTRIBUTE, uri);
              }
          }  
      }
  }
View Full Code Here

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.FROM__TYPE, oldType, 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.