Class AbstractProject
java.lang.Object
ca.phon.project.AbstractProject
- All Implemented Interfaces:
IExtendable
,Project
,ProjectEvents
- Direct Known Subclasses:
LocalProject
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProjectListener
(ProjectListener listener) Add a project listenervoid
Fire a project data changed eventvoid
Fire a project structure changed eventvoid
Fire a project write locks changed event<T> T
getExtension
(Class<T> cap) Get the requested extension if available.Return all extension types supportedGet the list of project listeners<T> T
putExtension
(Class<T> cap, T impl) Add a new extension.<T> T
removeExtension
(Class<T> cap) Remove a capability.void
removeProjectListener
(ProjectListener listener) Remove a project listenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.phon.project.Project
getCorpusDescription, getCorpusIterator, getName, getParticipants, getSessionIterator, getUUID, getVersion, hasCorpus, hasSession, openSession, openSession
-
Field Details
-
PROJECT_XML_FILE
Deprecated.Local projects no longer create this file but will read from it Remote projects require this file exists- See Also:
-
-
Constructor Details
-
AbstractProject
public AbstractProject()
-
-
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
-
getProjectListeners
Description copied from interface:ProjectEvents
Get the list of project listeners- Specified by:
getProjectListeners
in interfaceProjectEvents
- Returns:
- list of project listeners
-
addProjectListener
Description copied from interface:ProjectEvents
Add a project listener- Specified by:
addProjectListener
in interfaceProjectEvents
- Parameters:
listener
-
-
removeProjectListener
Description copied from interface:ProjectEvents
Remove a project listener- Specified by:
removeProjectListener
in interfaceProjectEvents
- Parameters:
listener
-
-
fireProjectStructureChanged
Description copied from interface:ProjectEvents
Fire a project structure changed event- Specified by:
fireProjectStructureChanged
in interfaceProjectEvents
- Parameters:
pe
-
-
fireProjectDataChanged
Description copied from interface:ProjectEvents
Fire a project data changed event- Specified by:
fireProjectDataChanged
in interfaceProjectEvents
- Parameters:
pe
-
-
fireProjectWriteLocksChanged
Description copied from interface:ProjectEvents
Fire a project write locks changed event- Specified by:
fireProjectWriteLocksChanged
in interfaceProjectEvents
- Parameters:
pe
-
-