Class FlexmiResource

  • All Implemented Interfaces:
    org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.resource.Resource, org.eclipse.emf.ecore.resource.Resource.Internal, FlexmiXmlParser.Handler

    public class FlexmiResource
    extends org.eclipse.emf.ecore.resource.impl.ResourceImpl
    implements FlexmiXmlParser.Handler
    • Field Detail

      • currentNode

        protected Node currentNode
      • eClassCache

        protected Map<String,​org.eclipse.emf.ecore.EClass> eClassCache
      • allSubtypesCache

        protected Map<org.eclipse.emf.ecore.EClass,​List<org.eclipse.emf.ecore.EClass>> allSubtypesCache
      • parsedFragmentURIStack

        protected Stack<org.eclipse.emf.common.util.URI> parsedFragmentURIStack
      • parsedFragmentURIs

        protected Set<org.eclipse.emf.common.util.URI> parsedFragmentURIs
      • fullyQualifiedIDs

        protected com.google.common.collect.BiMap<String,​org.eclipse.emf.ecore.EObject> fullyQualifiedIDs
      • localIDs

        protected Map<org.eclipse.emf.ecore.EObject,​String> localIDs
      • orderedChildren

        protected Map<org.eclipse.emf.ecore.EObject,​List<org.eclipse.emf.ecore.EObject>> orderedChildren
    • Constructor Detail

      • FlexmiResource

        public FlexmiResource​(org.eclipse.emf.common.util.URI uri)
    • Method Detail

      • startProcessingFragment

        public void startProcessingFragment​(org.eclipse.emf.common.util.URI uri)
      • endProcessingFragment

        public void endProcessingFragment()
      • getParsedFragmentURIs

        public Set<org.eclipse.emf.common.util.URI> getParsedFragmentURIs()
      • addTemplate

        public void addTemplate​(Template template)
      • doLoad

        protected void doLoad​(InputStream inputStream,
                              Map<?,​?> options)
                       throws IOException
        Overrides:
        doLoad in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
        Throws:
        IOException
      • save

        public void save​(Map<?,​?> options)
                  throws IOException
        Specified by:
        save in interface org.eclipse.emf.ecore.resource.Resource
        Overrides:
        save in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
        Throws:
        IOException
      • setEObjectId

        protected void setEObjectId​(org.eclipse.emf.ecore.EObject eObject,
                                    String id)
      • getEObject

        public org.eclipse.emf.ecore.EObject getEObject​(String uriFragment)
        Specified by:
        getEObject in interface org.eclipse.emf.ecore.resource.Resource
        Overrides:
        getEObject in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
      • addParseWarning

        protected void addParseWarning​(String message)
      • addParseWarning

        protected void addParseWarning​(String message,
                                       int line)
      • addParseWarning

        protected void addParseWarning​(String message,
                                       org.eclipse.emf.common.util.URI uri,
                                       int line)
      • performActions

        protected void performActions​(org.eclipse.emf.ecore.EObject eObject)
      • resolveReferences

        protected void resolveReferences()
      • resolveReference

        protected boolean resolveReference​(UnresolvedReference unresolvedReference)
      • getLineNumber

        public int getLineNumber​(Node node)
      • setAttributes

        protected void setAttributes​(org.eclipse.emf.ecore.EObject eObject,
                                     Element element)
      • getCurrentURI

        public org.eclipse.emf.common.util.URI getCurrentURI()
      • setEAttributeValue

        protected void setEAttributeValue​(org.eclipse.emf.ecore.EObject eObject,
                                          org.eclipse.emf.ecore.EAttribute eAttribute,
                                          String attributeName,
                                          String value)
      • getEValue

        protected Object getEValue​(org.eclipse.emf.ecore.EAttribute eAttribute,
                                   String attributeName,
                                   String value)
      • getCandidateStructuralFeaturesForAttribute

        protected List<org.eclipse.emf.ecore.EStructuralFeature> getCandidateStructuralFeaturesForAttribute​(org.eclipse.emf.ecore.EClass eClass)
      • getAllConcreteEClasses

        protected List<org.eclipse.emf.ecore.EClass> getAllConcreteEClasses()
      • getAllSubtypes

        protected List<org.eclipse.emf.ecore.EClass> getAllSubtypes​(org.eclipse.emf.ecore.EClass eClass)
      • eClassForName

        protected org.eclipse.emf.ecore.EClass eClassForName​(String name)
      • eNamedElementForName

        protected org.eclipse.emf.ecore.ENamedElement eNamedElementForName​(String name,
                                                                           Collection<? extends org.eclipse.emf.ecore.ENamedElement> candidates)
      • eNamedElementForName

        protected org.eclipse.emf.ecore.ENamedElement eNamedElementForName​(String name,
                                                                           Collection<? extends org.eclipse.emf.ecore.ENamedElement> candidates,
                                                                           boolean fuzzy)
      • addOrderedChild

        public void addOrderedChild​(org.eclipse.emf.ecore.EObject parent,
                                    org.eclipse.emf.ecore.EObject child)
      • getOrderedChildren

        public List<org.eclipse.emf.ecore.EObject> getOrderedChildren​(org.eclipse.emf.ecore.EObject parent)
      • getFrameStack

        public FrameStack getFrameStack()
      • getLocalId

        public String getLocalId​(org.eclipse.emf.ecore.EObject eObject)
      • setImportedFrom

        public void setImportedFrom​(FlexmiResource importedFrom)