public interface IUMLHelper
Modifier and Type | Method and Description |
---|---|
org.eclipse.uml2.uml.Element |
findElement(org.eclipse.uml2.uml.Element root,
java.lang.String id)
Finds elements whose ID matches exactly the specified
id . |
org.eclipse.uml2.uml.Element |
findElement(org.eclipse.uml2.uml.Element root,
java.lang.String id,
org.eclipse.core.runtime.IProgressMonitor monitor)
Finds elements whose ID matches exactly the specified
id . |
org.eclipse.uml2.uml.Element |
findElementById(org.eclipse.uml2.uml.Model model,
java.lang.String id)
Deprecated.
Since 7.5, use the
findElement(Element, String, IProgressMonitor)
method, instead. |
org.eclipse.uml2.uml.Element |
findElementById(org.eclipse.uml2.uml.Model model,
java.lang.String id,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
Since 7.5, use the
findElement(Element, String, IProgressMonitor)
method, instead. |
java.util.Set<org.eclipse.uml2.uml.Element> |
findElementByName(org.eclipse.uml2.uml.Element container,
java.lang.String name,
org.eclipse.emf.ecore.EClass type,
org.eclipse.core.runtime.IProgressMonitor monitor)
Finds the UML Element whose name and type match exactly the specified
name and type respectively. |
java.lang.String |
getAlias(org.eclipse.uml2.uml.NamedElement element)
Gets the alias of the named element, or empty string if the element does
not have an alias.
|
void |
setAlias(org.eclipse.uml2.uml.NamedElement element,
java.lang.String alias)
Sets the alias of the element.
|
@Deprecated org.eclipse.uml2.uml.Element findElementById(org.eclipse.uml2.uml.Model model, java.lang.String id)
findElement(Element, String, IProgressMonitor)
method, instead.id
.
The search is performed in the model specified by model
model
- The UML model where to perform the searchid
- The ID of the UML element to matchjava.lang.IllegalArgumentException
- is
is an empty stringjava.lang.ClassCastException
- is
if the element associated with the
specified id is not a UML Elementcom.ibm.xtools.emf.index.search.IIndexSearchManager
org.eclipse.uml2.uml.Element findElement(org.eclipse.uml2.uml.Element root, java.lang.String id)
id
.
The search is performed in the model specified by model
root
- The UML model where to perform the searchid
- The ID of the UML element to matchjava.lang.IllegalArgumentException
- is
is an empty stringjava.lang.ClassCastException
- is
if the element associated with the
specified id is not a UML Elementcom.ibm.xtools.emf.index.search.IIndexSearchManager
@Deprecated org.eclipse.uml2.uml.Element findElementById(org.eclipse.uml2.uml.Model model, java.lang.String id, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.InterruptedException
findElement(Element, String, IProgressMonitor)
method, instead.id
.
The search is performed in the model model resource specified by its
root
element.model
- The UML model where to perform the searchid
- The ID of the UML element to matchmonitor
- The monitor to use to display progress and/or cancel operationjava.lang.IllegalArgumentException
- name
is an empty string or type
is not a UML2 typejava.lang.InterruptedException
- The query operation was interruptedjava.lang.ClassCastException
- is
if the element associated with the
specified id is not a UML Elementcom.ibm.xtools.emf.index.search.IIndexSearchManager
org.eclipse.uml2.uml.Element findElement(org.eclipse.uml2.uml.Element root, java.lang.String id, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.InterruptedException
id
.
The search is performed in the model resource specified by its
root
element.root
- The root of the UML model where to perform the searchid
- The ID of the UML element to matchmonitor
- The monitor to use to display progress and/or cancel operationjava.lang.IllegalArgumentException
- name
is an empty string or type
is not a UML2 typejava.lang.InterruptedException
- The query operation was interruptedjava.lang.ClassCastException
- is
if the element associated with the
specified id is not a UML Elementcom.ibm.xtools.emf.index.search.IIndexSearchManager
java.util.Set<org.eclipse.uml2.uml.Element> findElementByName(org.eclipse.uml2.uml.Element container, java.lang.String name, org.eclipse.emf.ecore.EClass type, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.InterruptedException
name
and type
respectively. The search
begins at the element specified by container
and recurses
within its owned elementscontainer
- The root Element
where to perform the searchname
- The name of the Element
to matchtype
- The type of the Element
to matchmonitor
- The monitor to use to display progress and/or cancel operationElement
matching the specified
criteriajava.lang.InterruptedException
- The query operation was interruptedjava.lang.IllegalArgumentException
- name
is an empty string or type
is not a UML2 typejava.lang.NullPointerException
- One of the passed parameters was null
com.ibm.xtools.emf.index.search.IIndexSearchManager
java.lang.String getAlias(org.eclipse.uml2.uml.NamedElement element)
element
- The NamedElement
to get the alias forvoid setAlias(org.eclipse.uml2.uml.NamedElement element, java.lang.String alias)
element
- The element for which the alias is to be changedalias
- The alias to be set