Package org.deckfour.xes.extension
Class XExtensionParser
- java.lang.Object
-
- org.deckfour.xes.extension.XExtensionParser
-
public class XExtensionParser extends java.lang.ObjectParser for extension definition files.- Author:
- Christian W. Guenther (christian@deckfour.org)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classXExtensionParser.XExtensionHandlerSAX handler class for extension definition files.
-
Constructor Summary
Constructors Constructor Description XExtensionParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XExtensionParserinstance()Provides access to the singleton parser.XExtensionparse(java.io.File file)Parses an extension from a definition file.XExtensionparse(java.net.URI uri)Parses an extension from a URI.
-
-
-
Method Detail
-
instance
public static XExtensionParser instance()
Provides access to the singleton parser.- Returns:
- The parser.
-
parse
public XExtension parse(java.io.File file) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
Parses an extension from a definition file.- Parameters:
file- The definition file containing the extension.- Returns:
- The extension object, as defined in the provided file.
- Throws:
java.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXException
-
parse
public XExtension parse(java.net.URI uri) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
Parses an extension from a URI.- Parameters:
file- The URI which represents the extension definition file.- Returns:
- The extension object, as defined in the file referenced by the given URI.
- Throws:
java.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXException
-
-