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 TypeMethodDescriptionintboolean<T> TgetExtension(Class<T> cap) Get the requested extension if available.Return all extension types supportedGet corpusGet session filenameGet session nameinthashCode()<T> TputExtension(Class<T> cap, T impl) Add a new extension.<T> TremoveExtension(Class<T> cap) Remove a capability.voidSet corpusvoidsetSessionFile(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: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
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<SessionPath>
-