public interface TransientLinkManager
Theses links are virtual, have no restriction on the type of objects to connect and do never alter the models, while modeling link are reserved to model elements and will modify the related objects.
Transient links are particularly useful to add traceability between a source model element and a target model element.
This interface is not intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all registered transient links.
|
boolean |
containsKey(String name,
Object source)
Determines whether there are transient links from the specified source object of the specified name.
|
TransientLinkList<Object> |
get(String name,
Object source)
Returns the list a target objects connected to the source object through a transient link of specified name.
|
boolean |
isEmpty()
Returns
true if this manager contains no transient link. |
void |
remove(String name)
Removes any transient link of the specified name, whatever the source objects are.
|
void |
remove(String name,
Object source)
Removes any transient link of the specified name with the specified source object.
|
void clear()
boolean isEmpty()
true
if this manager contains no transient link.true
if this manager contains no transient link, false
otherwise.boolean containsKey(String name, Object source)
name
- the name of the transient link.source
- the source object of the transient link.true
if the source objects has any transient links of that name, false
otherwise.TransientLinkList<Object> get(String name, Object source)
The returned list may be empty, when no target object is connected. This list is modifiable, you can add or remove target objects directly from this list.
name
- the name of the transient link.source
- the source object of the transient link.void remove(String name)
name
- the name of the transient links to remove.