org.eclipse.gmt.umlx.ecore
Class Orphanage
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.NotifierImpl
org.eclipse.emf.ecore.resource.impl.ResourceImpl
org.eclipse.gmt.umlx.ecore.Orphanage
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.resource.Resource, org.eclipse.emf.ecore.resource.Resource.Internal
public class Orphanage
- extends org.eclipse.emf.ecore.resource.impl.ResourceImpl
An Orphanage resource provides a container for transient model elements,
that require a resource to satisfy EMF validity, but which do not actually
require saving away. The Orphanage is therefore always loaded and appears
unmodified even though contents such as EAssociation and EInheritance
are added.
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList |
Field Summary |
static org.eclipse.emf.common.util.URI |
uri
|
Constructor Summary |
Orphanage(org.eclipse.emf.ecore.resource.Resource resource)
|
Methods inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl |
attached, basicSetResourceSet, detached, getAllContents, getContents, getEObject, getErrors, getIntrinsicIDToEObjectMap, getResourceSet, getURIFragment, getWarnings, isLoading, isTrackingModification, load, load, save, setIntrinsicIDToEObjectMap, setTrackingModification, setURI, toKeyString, unload |
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl |
eAdapters, eDeliver, eSetDeliver |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
eNotificationRequired, eNotify |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
uri
public static final org.eclipse.emf.common.util.URI uri
Orphanage
public Orphanage(org.eclipse.emf.ecore.resource.Resource resource)
addOrphan
public void addOrphan(org.eclipse.emf.ecore.EObject anOrphan)
computeIsReadOnly
public boolean computeIsReadOnly()
getURI
public org.eclipse.emf.common.util.URI getURI()
- Specified by:
getURI
in interface org.eclipse.emf.ecore.resource.Resource
- Overrides:
getURI
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
isLoaded
public boolean isLoaded()
- Specified by:
isLoaded
in interface org.eclipse.emf.ecore.resource.Resource
- Overrides:
isLoaded
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
isLocked
public boolean isLocked()
isModified
public boolean isModified()
- Specified by:
isModified
in interface org.eclipse.emf.ecore.resource.Resource
- Overrides:
isModified
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
isReadOnly
public boolean isReadOnly()
removeOrphan
public void removeOrphan(org.eclipse.emf.ecore.EObject anOrphan)
save
public void save(java.util.Map options)
- Specified by:
save
in interface org.eclipse.emf.ecore.resource.Resource
- Overrides:
save
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
setLocked
public void setLocked(boolean setLocked)
setModified
public void setModified(boolean isModified)
- Specified by:
setModified
in interface org.eclipse.emf.ecore.resource.Resource
- Overrides:
setModified
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
setReadOnly
public void setReadOnly(boolean setReadOnly)
toString
public java.lang.String toString()
- Overrides:
toString
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl