Package ca.phon.session
Class TierDescriptions
java.lang.Object
ca.phon.session.TierDescriptions
- All Implemented Interfaces:
IExtendable
,Visitable<TierDescription>
,Iterable<TierDescription>
public final class TierDescriptions
extends Object
implements IExtendable, Iterable<TierDescription>, Visitable<TierDescription>
Iterable/visitor access for
Session
TierDescription
s.-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Visitor<TierDescription> visitor) Accept the given visitor.<T> T
getExtension
(Class<T> cap) Get the requested extension if available.Return all extension types supportediterator()
<T> T
putExtension
(Class<T> cap, T impl) Add a new extension.<T> T
removeExtension
(Class<T> cap) Remove a capability.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
iterator
- Specified by:
iterator
in interfaceIterable<TierDescription>
-
getExtensions
Description copied from interface:IExtendable
Return all extension types supported- Specified by:
getExtensions
in interfaceIExtendable
-
getExtension
Description copied from interface:IExtendable
Get the requested extension if available.- Specified by:
getExtension
in interfaceIExtendable
- Returns:
- the capability object or
null
if the cability is not available
-
putExtension
Description copied from interface:IExtendable
Add a new extension.- Specified by:
putExtension
in interfaceIExtendable
- Parameters:
cap
- the extension to add- Returns:
- the added extension implementation
-
removeExtension
Description copied from interface:IExtendable
Remove a capability.- Specified by:
removeExtension
in interfaceIExtendable
- Parameters:
cap
- the capability to remove
-
accept
Description copied from interface:Visitable
Accept the given visitor.- Specified by:
accept
in interfaceVisitable<TierDescription>
-