Class SessionPath
java.lang.Object
ca.phon.session.SessionPath
- All Implemented Interfaces:
IExtendable
,Comparable<SessionPath>
Helper class for holding location for sessions
in a project.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
<T> T
getExtension
(Class<T> cap) Get the requested extension if available.Return all extension types supportedGet corpusGet session filenameGet session nameint
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
setSessionFile
(String sessionFile) Set sessiontoString()
-
Field Details
-
PATH_SEP
-
-
Constructor Details
-
SessionPath
-
-
Method Details
-
getFolder
Get corpus -
setFolder
Set corpus -
getSessionFile
-
getSessionName
Get session name- Returns:
- session name (same as filename without extension)
-
setSessionFile
Set session -
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
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SessionPath>
-