public interface TargetURIs
extends java.lang.Iterable<org.eclipse.emf.common.util.URI>
putUserData(Key, Object)
. This information can be obtain
in later processing steps to optimize the reference lookup.
If different clients (e.g. different languages) try to share user data, they have to agree on
a given key
.Modifier and Type | Interface and Description |
---|---|
static class |
TargetURIs.Key<T>
A user data key with equalitiy semantics on the type of the value and the
logical name of the key.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllURIs(java.lang.Iterable<org.eclipse.emf.common.util.URI> uris)
Adds all the uris to this set of targets.
|
void |
addURI(org.eclipse.emf.common.util.URI uri)
Add the given uri to this set of targets.
|
java.util.Set<org.eclipse.emf.common.util.URI> |
asSet()
Returns a
Set view on this resource URIs. |
boolean |
contains(org.eclipse.emf.common.util.URI uri)
Returns
true if the uri is contained in this set of targets. |
boolean |
containsResource(org.eclipse.emf.common.util.URI resourceURI)
Returns
true if this set of targets contains at least one element from the
given resourceURI. |
java.util.Collection<org.eclipse.emf.common.util.URI> |
getEObjectURIs(org.eclipse.emf.common.util.URI resourceURI)
Return all targets that are defined in the given resource.
|
java.util.Collection<org.eclipse.emf.common.util.URI> |
getTargetResourceURIs()
Returns the collection of target resource URIs, e.g.
|
<T> T |
getUserData(TargetURIs.Key<T> key)
Read the user data with the given key.
|
boolean |
isEmpty()
Returns
true if there is no target URI yet. |
<T> void |
putUserData(TargetURIs.Key<T> key,
T data)
Store user data with the given key.
|
int |
size()
Returns the number of known target object URIs.
|
<T> T getUserData(TargetURIs.Key<T> key)
null
is no such user data is available.<T> void putUserData(TargetURIs.Key<T> key, T data)
void addURI(org.eclipse.emf.common.util.URI uri)
void addAllURIs(java.lang.Iterable<org.eclipse.emf.common.util.URI> uris)
java.util.Collection<org.eclipse.emf.common.util.URI> getTargetResourceURIs()
java.util.Collection<org.eclipse.emf.common.util.URI> getEObjectURIs(org.eclipse.emf.common.util.URI resourceURI)
boolean contains(org.eclipse.emf.common.util.URI uri)
true
if the uri is contained in this set of targets.boolean containsResource(org.eclipse.emf.common.util.URI resourceURI)
true
if this set of targets contains at least one element from the
given resourceURI.boolean isEmpty()
true
if there is no target URI yet.int size()
java.util.Set<org.eclipse.emf.common.util.URI> asSet()
Set
view on this resource URIs.