Package ca.phon.orthography
Class AbstractOrthoElement
java.lang.Object
ca.phon.orthography.AbstractOrthoElement
- All Implemented Interfaces:
IExtendable
,OrthoElement
- Direct Known Subclasses:
OrthoComment
,OrthoEvent
,OrthoPunct
,OrthoWord
Abstract implementation of
OrthoElement
implementing
extension support.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
getExtension
(Class<T> cap) Get the requested extension if available.Return all extension types supported<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 ca.phon.orthography.OrthoElement
text
-
Constructor Details
-
AbstractOrthoElement
public AbstractOrthoElement()
-
-
Method Details
-
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
-