Package ca.phon.session
Class SessionPath
- All Implemented Interfaces:
IExtendable
,Comparable<Tuple<? extends String,
? extends String>>
Helper class for holding location for sessions
in a project.
-
Constructor Summary
ConstructorDescriptionConstructorSessionPath
(String path) SessionPath
(String corpus, String session) -
Method Summary
Modifier and TypeMethodDescriptionGet corpus<T> T
getExtension
(Class<T> cap) Get the requested extension if available.Return all extension types supportedGet sessionint
hashCode()
<T> T
putExtension
(Class<T> cap, T impl) Add a new extension.<T> T
removeExtension
(Class<T> cap) Remove a capability.void
Set corpusvoid
setSession
(String session) Set sessiontoString()
-
Constructor Details
-
SessionPath
public SessionPath()Constructor -
SessionPath
-
SessionPath
-
-
Method Details
-
getCorpus
Get corpus -
setCorpus
Set corpus -
getSession
Get session -
setSession
Set session -
hashCode
public int hashCode() -
toString
-
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
-