public interface IRegistryView extends IQuerySpecificationRegistryChangeListener
IQuerySpecificationRegistry
. Views are created using the createView methods of registry and their content is
also dynamically updated by the registry.
The view contains a set of IQuerySpecificationRegistryEntry
objects that can be used to access the query
specifications themselves through the get() method.
Users can check the contents of the view and add listeners to get notifications on view changes (added or removed
entries).Modifier and Type | Method and Description |
---|---|
void |
addViewListener(IQuerySpecificationRegistryChangeListener listener)
Adds a listener to the view that will be notified when an entry is added to or removed from the view.
|
java.lang.Iterable<IQuerySpecificationRegistryEntry> |
getEntries() |
java.util.Set<IQuerySpecificationRegistryEntry> |
getEntries(java.lang.String fullyQualifiedName) |
java.util.Set<java.lang.String> |
getQuerySpecificationFQNs() |
IQuerySpecificationRegistry |
getRegistry() |
boolean |
hasQuerySpecificationFQN(java.lang.String fullyQualifiedName) |
void |
removeViewListener(IQuerySpecificationRegistryChangeListener listener)
Removes a listener that was previously added to the view.
|
entryAdded, entryRemoved
java.lang.Iterable<IQuerySpecificationRegistryEntry> getEntries()
java.util.Set<java.lang.String> getQuerySpecificationFQNs()
boolean hasQuerySpecificationFQN(java.lang.String fullyQualifiedName)
fullyQualifiedName
- that is looked up in the viewjava.util.Set<IQuerySpecificationRegistryEntry> getEntries(java.lang.String fullyQualifiedName)
fullyQualifiedName
- of the entries that are requestedvoid addViewListener(IQuerySpecificationRegistryChangeListener listener)
listener
- that is addedvoid removeViewListener(IQuerySpecificationRegistryChangeListener listener)
listener
- that is removedIQuerySpecificationRegistry getRegistry()