|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface that provides various utility functions to manage and validate
EObject
and its proxies.
API clients should not implement this interface.
Unless specified differently, members of this interface should always be called in the context of a ResourceSetReadOperation
Method Summary | |
void |
destroy(org.eclipse.emf.ecore.EObject eObject)
Destroys the object by removing it from its container and severing all references from and to the object. it is also recursive, i.e., it gets called on the children. |
String |
getID(org.eclipse.emf.ecore.EObject eObject)
Returns the ID if there is one for the given object; if there is no ID, it returns an empty string. |
String |
getName(org.eclipse.emf.ecore.EObject eObject)
Gets the name of an object if the object has name, returns an empty string otherwise. |
org.eclipse.emf.ecore.EClass |
getProxyClass(org.eclipse.emf.ecore.InternalEObject eObject)
Gets the EClass of the object referenced by the proxy by parsing the proxy URI. |
String |
getProxyID(org.eclipse.emf.ecore.InternalEObject eObject)
Gets the ID of the object referenced by the proxy by parsing the proxy URI. |
String |
getProxyName(org.eclipse.emf.ecore.InternalEObject eObject)
Gets the name of the object referenced by the proxy by parsing the proxy URI. |
String |
getProxyQName(org.eclipse.emf.ecore.InternalEObject eObject)
Gets the fully qualified name of the object referenced by the proxy by parsing the proxy URI. |
String |
getQName(org.eclipse.emf.ecore.EObject eObject,
boolean formatted)
Gets the fully qualified name of an object. |
Collection |
getReferencers(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference[] features)
Finds all referencers of a particular object. |
boolean |
setName(org.eclipse.emf.ecore.EObject eObject,
String name)
Sets the name of an object if the object can be assigned a name. |
org.eclipse.core.runtime.IStatus |
validate(Collection objects,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method validates a collection of elements by evaluating the batch constraints that apply to them, recursively, over their containment sub-trees. |
Method Detail |
public void destroy(org.eclipse.emf.ecore.EObject eObject)
eObject
- The object to destroy.public String getID(org.eclipse.emf.ecore.EObject eObject)
eObject
- The object to get the ID for.
public String getName(org.eclipse.emf.ecore.EObject eObject)
eObject
- The object to get the name of.
public boolean setName(org.eclipse.emf.ecore.EObject eObject, String name)
eObject
- The object to set the name of.name
- The object's new name.
true
if the name was set
IllegalArgumentException
- The specified eObject
is not nameable.public String getQName(org.eclipse.emf.ecore.EObject eObject, boolean formatted)
eObject
- The object to get the fully qualified name of.formatted
- When true
, unnamed parents will be listed
using their meta-class name.
public Collection getReferencers(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference[] features)
eObject
- the referenced objectfeatures
- the reference features, can be null or empty
public org.eclipse.core.runtime.IStatus validate(Collection objects, org.eclipse.core.runtime.IProgressMonitor monitor)
objects
- the objects to validatemonitor
- the progress monitor
IValidationStatus
, or a multi-status
composed of IValidationStatus
es, or neitherpublic String getProxyName(org.eclipse.emf.ecore.InternalEObject eObject)
eObject
- the proxy object
public String getProxyQName(org.eclipse.emf.ecore.InternalEObject eObject)
eObject
- the proxy object
public String getProxyID(org.eclipse.emf.ecore.InternalEObject eObject)
eObject
- the proxy object
public org.eclipse.emf.ecore.EClass getProxyClass(org.eclipse.emf.ecore.InternalEObject eObject)
eObject
- the proxy object
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.