Package org.eclipse.emf.ecore

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


            TreeIterator<EObject> it = resource.getAllContents();
           
            while (it.hasNext())
            {
                EObject current = it.next();
                EClass clazz = current.eClass();
               
                // Check references using reflective API
                for (EReference ref: clazz.getEAllReferences())
                {
                    Object value = current.eGet(ref);
View Full Code Here


                    (EObject) owningObject.eGet(_parentClassNameFeature);

                if (parentClassTypeObject != null)
                {
                    final EStructuralFeature feature =
                        parentClassTypeObject.eClass()
                            .getEStructuralFeature("textContent"); //$NON-NLS-1$
                   
                    if (feature != null)
                    {
                        parentClassType = (String)
View Full Code Here

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

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

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

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

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

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

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

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

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

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

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

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

    private EObject container(EObject object) {
        final EObject container = object.eContainer();
        if (!(container instanceof DataObject))
            return null;
        String name = extendedMetaData.getName(container.eClass());
        return name != null && name.length() == 0 // DocumentRoot
             ? null : container;
    }

    private String path() throws XMLStreamException {
View Full Code Here

            }
          }

          // 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

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.