Class CMLResource

java.lang.Object
org.contextmapper.dsl.cml.CMLResource
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.resource.Resource

public class CMLResource extends Object implements org.eclipse.emf.ecore.resource.Resource
Contains an Eclipse resource for which we can be sure that it contains a CML model.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource

    org.eclipse.emf.ecore.resource.Resource.Diagnostic, org.eclipse.emf.ecore.resource.Resource.Factory, org.eclipse.emf.ecore.resource.Resource.Internal, org.eclipse.emf.ecore.resource.Resource.IOWrappedException
  • Field Summary

    Fields inherited from interface org.eclipse.emf.ecore.resource.Resource

    OPTION_CIPHER, OPTION_LINE_DELIMITER, OPTION_LINE_DELIMITER_UNSPECIFIED, OPTION_SAVE_ONLY_IF_CHANGED, OPTION_SAVE_ONLY_IF_CHANGED_FILE_BUFFER, OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__TIME_STAMP, RESOURCE__URI, RESOURCE__WARNINGS
  • Constructor Summary

    Constructors
    Constructor
    Description
    CMLResource(org.eclipse.emf.ecore.resource.Resource resource)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(Map<?,?> options)
     
    org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter>
     
    boolean
     
    void
    eNotify(org.eclipse.emf.common.notify.Notification notification)
     
    boolean
     
    void
    eSetDeliver(boolean deliver)
     
    org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject>
     
    org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject>
     
     
    org.eclipse.emf.ecore.EObject
    getEObject(String uriFragment)
     
    org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource.Diagnostic>
     
    org.eclipse.emf.ecore.resource.ResourceSet
     
    long
     
    org.eclipse.emf.common.util.URI
     
    getURIFragment(org.eclipse.emf.ecore.EObject eObject)
     
    org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource.Diagnostic>
     
    org.eclipse.xtext.resource.XtextResource
     
    int
     
    boolean
     
    boolean
     
    boolean
     
    void
    load(InputStream inputStream, Map<?,?> options)
     
    void
    load(Map<?,?> options)
     
    void
    save(OutputStream outputStream, Map<?,?> options)
     
    void
    save(Map<?,?> options)
     
    void
    setModified(boolean isModified)
     
    void
    setTimeStamp(long timeStamp)
     
    void
    setTrackingModification(boolean isTrackingModification)
     
    void
    setURI(org.eclipse.emf.common.util.URI uri)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CMLResource

      public CMLResource(org.eclipse.emf.ecore.resource.Resource resource)
  • Method Details

    • getContextMappingModel

      public ContextMappingModel getContextMappingModel()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getXtextResource

      public org.eclipse.xtext.resource.XtextResource getXtextResource()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • eAdapters

      public org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> eAdapters()
      Specified by:
      eAdapters in interface org.eclipse.emf.common.notify.Notifier
    • eDeliver

      public boolean eDeliver()
      Specified by:
      eDeliver in interface org.eclipse.emf.common.notify.Notifier
    • eSetDeliver

      public void eSetDeliver(boolean deliver)
      Specified by:
      eSetDeliver in interface org.eclipse.emf.common.notify.Notifier
    • eNotify

      public void eNotify(org.eclipse.emf.common.notify.Notification notification)
      Specified by:
      eNotify in interface org.eclipse.emf.common.notify.Notifier
    • getResourceSet

      public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
      Specified by:
      getResourceSet in interface org.eclipse.emf.ecore.resource.Resource
    • getURI

      public org.eclipse.emf.common.util.URI getURI()
      Specified by:
      getURI in interface org.eclipse.emf.ecore.resource.Resource
    • setURI

      public void setURI(org.eclipse.emf.common.util.URI uri)
      Specified by:
      setURI in interface org.eclipse.emf.ecore.resource.Resource
    • getTimeStamp

      public long getTimeStamp()
      Specified by:
      getTimeStamp in interface org.eclipse.emf.ecore.resource.Resource
    • setTimeStamp

      public void setTimeStamp(long timeStamp)
      Specified by:
      setTimeStamp in interface org.eclipse.emf.ecore.resource.Resource
    • getContents

      public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getContents()
      Specified by:
      getContents in interface org.eclipse.emf.ecore.resource.Resource
    • getAllContents

      public org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> getAllContents()
      Specified by:
      getAllContents in interface org.eclipse.emf.ecore.resource.Resource
    • getURIFragment

      public String getURIFragment(org.eclipse.emf.ecore.EObject eObject)
      Specified by:
      getURIFragment in interface org.eclipse.emf.ecore.resource.Resource
    • getEObject

      public org.eclipse.emf.ecore.EObject getEObject(String uriFragment)
      Specified by:
      getEObject in interface org.eclipse.emf.ecore.resource.Resource
    • save

      public void save(Map<?,?> options) throws IOException
      Specified by:
      save in interface org.eclipse.emf.ecore.resource.Resource
      Throws:
      IOException
    • load

      public void load(Map<?,?> options) throws IOException
      Specified by:
      load in interface org.eclipse.emf.ecore.resource.Resource
      Throws:
      IOException
    • save

      public void save(OutputStream outputStream, Map<?,?> options) throws IOException
      Specified by:
      save in interface org.eclipse.emf.ecore.resource.Resource
      Throws:
      IOException
    • load

      public void load(InputStream inputStream, Map<?,?> options) throws IOException
      Specified by:
      load in interface org.eclipse.emf.ecore.resource.Resource
      Throws:
      IOException
    • isTrackingModification

      public boolean isTrackingModification()
      Specified by:
      isTrackingModification in interface org.eclipse.emf.ecore.resource.Resource
    • setTrackingModification

      public void setTrackingModification(boolean isTrackingModification)
      Specified by:
      setTrackingModification in interface org.eclipse.emf.ecore.resource.Resource
    • isModified

      public boolean isModified()
      Specified by:
      isModified in interface org.eclipse.emf.ecore.resource.Resource
    • setModified

      public void setModified(boolean isModified)
      Specified by:
      setModified in interface org.eclipse.emf.ecore.resource.Resource
    • isLoaded

      public boolean isLoaded()
      Specified by:
      isLoaded in interface org.eclipse.emf.ecore.resource.Resource
    • unload

      public void unload()
      Specified by:
      unload in interface org.eclipse.emf.ecore.resource.Resource
    • delete

      public void delete(Map<?,?> options) throws IOException
      Specified by:
      delete in interface org.eclipse.emf.ecore.resource.Resource
      Throws:
      IOException
    • getErrors

      public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource.Diagnostic> getErrors()
      Specified by:
      getErrors in interface org.eclipse.emf.ecore.resource.Resource
    • getWarnings

      public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource.Diagnostic> getWarnings()
      Specified by:
      getWarnings in interface org.eclipse.emf.ecore.resource.Resource