Class ExtendableObject
java.lang.Object
ca.phon.extensions.ExtendableObject
- All Implemented Interfaces:
IExtendable
- Direct Known Subclasses:
Comment,Gem,GraspTierData,IntervalTier,IntervalTiers,MediaSegment,MorElement,MorTierData,OrthographyBuilder,Participant,Participants,Record,Records,Session,SessionFactory,TierComment,TierData,TierDescription,TierInternalMedia,TierString,TierViewItem,Transcriber,Transcribers,Transcript
Object with extension support enabled.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetExtension(Class<T> cap) Get the requested extension if available.Return all extension types supported<T> TputExtension(Class<T> cap, T impl) Add a new extension.<T> TremoveExtension(Class<T> cap) Remove a capability.
-
Constructor Details
-
ExtendableObject
public ExtendableObject()
-
-
Method Details
-
getExtensions
Description copied from interface:IExtendableReturn all extension types supported- Specified by:
getExtensionsin interfaceIExtendable
-
getExtension
Description copied from interface:IExtendableGet the requested extension if available.- Specified by:
getExtensionin interfaceIExtendable- Returns:
- the capability object or
nullif the cability is not available
-
putExtension
Description copied from interface:IExtendableAdd a new extension.- Specified by:
putExtensionin interfaceIExtendable- Parameters:
cap- the extension to add- Returns:
- the added extension implementation
-
removeExtension
Description copied from interface:IExtendableRemove a capability.- Specified by:
removeExtensionin interfaceIExtendable- Parameters:
cap- the capability to remove
-