Package ca.phon.app.session
Class SessionFileOpenHandler
java.lang.Object
ca.phon.app.session.SessionFileOpenHandler
- All Implemented Interfaces:
XMLOpenHandler
,IPluginExtensionPoint<XMLOpenHandler>
- Direct Known Subclasses:
TalkBankXMLOpenFileHandler
public class SessionFileOpenHandler
extends Object
implements XMLOpenHandler, IPluginExtensionPoint<XMLOpenHandler>
Open session files in Phon format. If no project is detected a temorary
project is created for the session editor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canRead
(StartElement startEle) protected Project
createTempProjectForFile
(File file) protected Project
findProjectForFile
(File file) Class<?>
Get type of extensionGet factory for extension point objectsprotected Session
openSession
(File file) void
openXMLFile
(File file, Map<String, Object> args) Open xml documentGet supported extensions (without '.')
-
Constructor Details
-
SessionFileOpenHandler
public SessionFileOpenHandler()
-
-
Method Details
-
getExtensionType
Description copied from interface:IPluginExtensionPoint
Get type of extension- Specified by:
getExtensionType
in interfaceIPluginExtensionPoint<XMLOpenHandler>
-
getFactory
Description copied from interface:IPluginExtensionPoint
Get factory for extension point objects- Specified by:
getFactory
in interfaceIPluginExtensionPoint<XMLOpenHandler>
-
supportedExtensions
Description copied from interface:XMLOpenHandler
Get supported extensions (without '.')- Specified by:
supportedExtensions
in interfaceXMLOpenHandler
-
canRead
- Specified by:
canRead
in interfaceXMLOpenHandler
- Returns:
true
if this reader can handle the given root start element.
-
openXMLFile
Description copied from interface:XMLOpenHandler
Open xml document- Specified by:
openXMLFile
in interfaceXMLOpenHandler
- Throws:
IOException
-
openSession
- Throws:
IOException
-
createTempProjectForFile
-
findProjectForFile
-