Examples of eClass()


Examples of org.eclipse.emf.ecore.EObject.eClass()

    EObject parserElement = getParserElement();
    if (parserElement == null) {
      return null;
    }
    return OntoUML.diagram.providers.OntoUMLElementTypes
        .getImage(parserElement.eClass());
  }

  /**
   * @generated
   */
 
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eClass()

    EObject parserElement = getParserElement();
    if (parserElement == null) {
      return null;
    }
    return OntoUML.diagram.providers.OntoUMLElementTypes
        .getImage(parserElement.eClass());
  }

  /**
   * @generated
   */
 
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eClass()

    EObject parserElement = getParserElement();
    if (parserElement == null) {
      return null;
    }
    return OntoUML.diagram.providers.OntoUMLElementTypes
        .getImage(parserElement.eClass());
  }

  /**
   * @generated
   */
 
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eClass()

    EObject parserElement = getParserElement();
    if (parserElement == null) {
      return null;
    }
    return OntoUML.diagram.providers.OntoUMLElementTypes
        .getImage(parserElement.eClass());
  }

  /**
   * @generated
   */
 
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eClass()

    EObject parserElement = getParserElement();
    if (parserElement == null) {
      return null;
    }
    return OntoUML.diagram.providers.OntoUMLElementTypes
        .getImage(parserElement.eClass());
  }

  /**
   * @generated
   */
 
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eClass()

            }
          }

          // use namespace declarations defined in the document (if any)
          EObject eRootObject = eDataGraph.getERootObject();
          EReference xmlnsPrefixMapFeature = extendedMetaData.getXMLNSPrefixMapFeature(eRootObject.eClass());
          if (xmlnsPrefixMapFeature != null)
          {
            EMap xmlnsPrefixMap = (EMap)eRootObject.eGet(xmlnsPrefixMapFeature);
            helper.setPrefixToNamespaceMap(xmlnsPrefixMap);
          }
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eClass()

                  EObject rootObject = createObjectByType(prefix, name, false);
                  eDataGraph.setERootObject(rootObject);
                  processObject(rootObject);
                  if (rootObject != null
                    && rootObject.eClass() == ExtendedMetaData.INSTANCE.getDocumentRoot(rootObject.eClass().getEPackage()))
                  {
                    super.handleFeature(prefix, name);

                    // Remove the document root from the stack.
                    //
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eClass()

                  EObject rootObject = createObjectByType(prefix, name, false);
                  eDataGraph.setERootObject(rootObject);
                  processObject(rootObject);
                  if (rootObject != null
                    && rootObject.eClass() == ExtendedMetaData.INSTANCE.getDocumentRoot(rootObject.eClass().getEPackage()))
                  {
                    super.handleFeature(prefix, name);

                    // Remove the document root from the stack.
                    //
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eClass()

 

 
  private static Property getPropertyByIndex(DataObject dataObject, int propertyIndex) {
    EObject eObject = (EObject) dataObject;
    Property property = (Property)eObject.eClass().getEStructuralFeature(propertyIndex);
    return property;
  }

  public static void setString(DataObject dataObject, int propertyIndex, String value) {
    dataObject.set(propertyIndex, getSetValue(getPropertyByIndex(dataObject, propertyIndex), value));
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eClass()

 
  public static List getInstanceProperties(DataObject dataObject)
  {
    //TODO maybe optimize this to just return type.getProperties if type.isOpen (isOpen would need to be cached)
    EObject eDataObject = (EObject) dataObject;
    List result = new UniqueEList(eDataObject.eClass().getEAllStructuralFeatures());
    for (int i = 0, count = result.size(); i < count; ++i)
    {
      EStructuralFeature eStructuralFeature = (EStructuralFeature)result.get(i);
      if (!eStructuralFeature.isDerived() && FeatureMapUtil.isFeatureMap(eStructuralFeature))
      {
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.