|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.interpreter.scope.ScopedSet<E>
E - Type of the elements in this set.public final class ScopedSet<E>
A simple Set which is scope aware.
This enables the user to store in a set and retrieve these values without taking care about scope changes. The values are always scope aware.
| Constructor Summary | |
|---|---|
ScopedSet(ScopeObserver scopeObserver)
Constructs a new object. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(E e)
|
|
boolean |
addAll(Collection<? extends E> c)
|
|
void |
addScopedSetObserver(ScopedSetObserver<E> obs)
Adds the given observer to the list of known observers. |
|
void |
clear()
|
|
void |
close()
Unsubscribe this scoped container from the ScopePublisher. |
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
void |
enterScope(Scope previous,
Scope next)
The application has entered the next scope and the
previous scope is no more the current scope. |
|
void |
exitScope(Scope previous,
Scope next)
The application has left the previous scope and the
next scope is valid. |
|
boolean |
isEmpty()
|
|
Iterator<E> |
iterator()
|
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
void |
removeScopedSetObserver(ScopedSetObserver<E> obs)
Removes the given scope observer from the list of known observers. |
|
boolean |
retainAll(Collection<?> c)
|
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public ScopedSet(ScopeObserver scopeObserver)
scopeObserver - The current scope observer.| Method Detail |
|---|
public void addScopedSetObserver(ScopedSetObserver<E> obs)
obs - the observer to addpublic void removeScopedSetObserver(ScopedSetObserver<E> obs)
obs - the observer to removepublic void close()
ScopePublisher.
public void enterScope(Scope previous,
Scope next)
next scope and the
previous scope is no more the current scope.
enterScope in interface ScopeSubscriberprevious - The old scope.next - The new scope.
public void exitScope(Scope previous,
Scope next)
previous scope and the
next scope is valid.
exitScope in interface ScopeSubscriberprevious - The old scope.next - The new scope.public boolean add(E e)
add in interface Collection<E>add in interface Set<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in interface Set<E>public void clear()
clear in interface Collection<E>clear in interface Set<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface Set<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface Set<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface Set<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface Set<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface Set<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>removeAll in interface Set<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in interface Set<E>public int size()
size in interface Collection<E>size in interface Set<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface Set<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in interface Set<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||