|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.util.impl.XMLParser_impl
public class XMLParser_impl
Reference implementation of XMLParser.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.uima.util.XMLParser |
|---|
XMLParser.ParsingOptions |
| Field Summary | |
|---|---|
protected static XMLParser.ParsingOptions |
DEFAULT_PARSING_OPTIONS
|
protected java.util.Map<java.lang.String,java.lang.Class<? extends XMLizable>> |
mElementToClassMap
Map from XML element names to Class objects. |
protected boolean |
mSchemaValidationEnabled
Whether schema validation is enabled. |
| Fields inherited from interface org.apache.uima.util.XMLParser |
|---|
RESOURCE_SPECIFIER_NAMESPACE, RESOURCE_SPECIFIER_SCHEMA_NAME |
| Constructor Summary | |
|---|---|
XMLParser_impl()
Creates a new XMLParser_impl. |
|
| Method Summary | |
|---|---|
void |
addMapping(java.lang.String aElementName,
java.lang.String aClassName)
Configures this XMLParser by registering a mapping between the name of an XML element and the Class of object to be built from elements with that name. |
XMLizable |
buildObject(org.w3c.dom.Element aElement)
Builds an object from its XML DOM representation. |
XMLizable |
buildObject(org.w3c.dom.Element aElement,
XMLParser.ParsingOptions aOptions)
Builds an object from its XML DOM representation. |
java.lang.Object |
buildObjectOrPrimitive(org.w3c.dom.Element aElement,
XMLParser.ParsingOptions aOptions)
Builds an object from its XML DOM representation. |
void |
enableSchemaValidation(boolean aEnable)
Enables or disables XML scheam validation. |
SaxDeserializer |
newSaxDeserializer()
Creates a new SaxDeserializer object, which implements the SAX
ContentHandler interface and can be used to deserialize an
XMLizable object from the events sent from a SAX parser. |
SaxDeserializer |
newSaxDeserializer(XMLParser.ParsingOptions aOptions)
Creates a new SaxDeserializer. |
XMLizable |
parse(XMLInputSource aInput)
Parses an XML input stream and produces an object. |
XMLizable |
parse(XMLInputSource aInput,
java.lang.String aNamespaceForSchema,
java.net.URL aSchemaUrl)
Parses an XML input stream and produces an object. |
XMLizable |
parse(XMLInputSource aInput,
java.lang.String aNamespaceForSchema,
java.net.URL aSchemaUrl,
XMLParser.ParsingOptions aOptions)
Parses an XML input stream and produces an object. |
XMLizable |
parse(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses an XML input stream and produces an object. |
AnalysisEngineDescription |
parseAnalysisEngineDescription(XMLInputSource aInput)
Parses a AnalysisEngineDescription from an XML input stream. |
AnalysisEngineDescription |
parseAnalysisEngineDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a AnalysisEngineDescription from an XML input stream. |
CasConsumerDescription |
parseCasConsumerDescription(XMLInputSource aInput)
Parses a CasConsumerDescription from an XML input stream. |
CasConsumerDescription |
parseCasConsumerDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a CasConsumerDescription from an XML input stream. |
CasInitializerDescription |
parseCasInitializerDescription(XMLInputSource aInput)
Deprecated. |
CasInitializerDescription |
parseCasInitializerDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Deprecated. |
CollectionReaderDescription |
parseCollectionReaderDescription(XMLInputSource aInput)
Parses a CollectionReaderDescription from an XML input stream. |
CollectionReaderDescription |
parseCollectionReaderDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a CollectionReaderDescription from an XML input stream. |
CpeDescription |
parseCpeDescription(XMLInputSource aInput)
Parses a CpeDescription from an XML input stream. |
CustomResourceSpecifier |
parseCustomResourceSpecifier(XMLInputSource aInput)
Parses a CustomResourceSpecifier from an XML input stream. |
CustomResourceSpecifier |
parseCustomResourceSpecifier(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a CustomResourceSpecifier from an XML input stream. |
FlowControllerDescription |
parseFlowControllerDescription(XMLInputSource aInput)
Parses a FlowControllerDescription from an XML input stream. |
FlowControllerDescription |
parseFlowControllerDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a FlowControllerDescription from an XML input stream. |
FsIndexCollection |
parseFsIndexCollection(XMLInputSource aInput)
Parses a FsIndexCollection from an XML input stream. |
FsIndexCollection |
parseFsIndexCollection(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a FsIndexCollection from an XML input stream. |
IndexBuildSpecification |
parseIndexBuildSpecification(XMLInputSource aInput)
Parses an IndexBuildSpecification from an XML input stream. |
IndexBuildSpecification |
parseIndexBuildSpecification(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses an IndexBuildSpecification from an XML input stream. |
PearSpecifier |
parsePearSpecifier(XMLInputSource aInput)
Parses a PearSpecifier from an XML input stream. |
PearSpecifier |
parsePearSpecifier(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a PearSpecifier from an XML input stream. |
ResourceManagerConfiguration |
parseResourceManagerConfiguration(XMLInputSource aInput)
Parses a ResourceManagerConfiguration from an XML input stream. |
ResourceManagerConfiguration |
parseResourceManagerConfiguration(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a ResourceManagerConfiguration from an XML input stream. |
ResourceMetaData |
parseResourceMetaData(XMLInputSource aInput)
Parses a ResourceMetaData object from an XML input stream. |
ResourceMetaData |
parseResourceMetaData(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a ResourceMetaData object from an XML input stream. |
ResourceSpecifier |
parseResourceSpecifier(XMLInputSource aInput)
Parses a ResourceSpecifier from an XML input stream. |
ResourceSpecifier |
parseResourceSpecifier(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a ResourceSpecifier from an XML input stream. |
ResultSpecification |
parseResultSpecification(XMLInputSource aInput)
Parses a ResultSpecification from an XML input stream. |
ResultSpecification |
parseResultSpecification(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a ResultSpecification from an XML input stream. |
TaeDescription |
parseTaeDescription(XMLInputSource aInput)
Deprecated. since v2.0 |
TaeDescription |
parseTaeDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Deprecated. since v2.0 |
TypePriorities |
parseTypePriorities(XMLInputSource aInput)
Parses a TypePriorities declaration from an XML input stream. |
TypePriorities |
parseTypePriorities(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a TypePriorities declaration from an XML input stream. |
TypeSystemDescription |
parseTypeSystemDescription(XMLInputSource aInput)
Parses a TypeSystemDescription from an XML input stream. |
TypeSystemDescription |
parseTypeSystemDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a TypeSystemDescription from an XML input stream. |
URISpecifier |
parseURISpecifier(XMLInputSource aInput)
Parses a URISpecifier from an XML input stream. |
URISpecifier |
parseURISpecifier(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
Parses a URISpecifier from an XML input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map<java.lang.String,java.lang.Class<? extends XMLizable>> mElementToClassMap
protected boolean mSchemaValidationEnabled
protected static final XMLParser.ParsingOptions DEFAULT_PARSING_OPTIONS
| Constructor Detail |
|---|
public XMLParser_impl()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException - if the underlying XML parser could not be constructed| Method Detail |
|---|
public void enableSchemaValidation(boolean aEnable)
XMLParser
enableSchemaValidation in interface XMLParseraEnable - true to enable validation, false to disable validationXMLParser.enableSchemaValidation(boolean)
public XMLizable parse(XMLInputSource aInput,
java.lang.String aNamespaceForSchema,
java.net.URL aSchemaUrl,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
parse in interface XMLParseraInput - the input source from which to read the XML documentaNamespaceForSchema - XML namespace for elements to be validated against XML schema. If null, no schema will
be used.aSchemaUrl - URL to XML schema that will be used to validate the XML document. If null, no schema
will be used.aOptions - option settings
XMLizable object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid object
public XMLizable parse(XMLInputSource aInput,
java.lang.String aNamespaceForSchema,
java.net.URL aSchemaUrl)
throws InvalidXMLException
parse in interface XMLParseraInput - the input source from which to read the XML documentaNamespaceForSchema - XML namespace for elements to be validated against XML schema. If null, no schema will
be used.aSchemaUrl - URL to XML schema that will be used to validate the XML document. If null, no schema
will be used.
XMLizable object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid object
public XMLizable parse(XMLInputSource aInput)
throws InvalidXMLException
parse in interface XMLParseraInput - the input source from which to read the XML document
XMLizable object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid object
public XMLizable parse(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parse in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
XMLizable object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid object
public XMLizable buildObject(org.w3c.dom.Element aElement)
throws InvalidXMLException
buildObject in interface XMLParseraElement - a DOM Element
XMLizable object constructed from the DOM element
InvaidXMLException - if the XML element does not specify a valid object
InvalidXMLException - if the XML element does not specify a valid object
public XMLizable buildObject(org.w3c.dom.Element aElement,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
buildObject in interface XMLParseraElement - a DOM ElementaOptions - option settings
XMLizable object constructed from the DOM element
InvaidXMLException - if the XML element does not specify a valid object
InvalidXMLException - if the XML element does not specify a valid object
public java.lang.Object buildObjectOrPrimitive(org.w3c.dom.Element aElement,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParserXMLizable.buildFromXMLElement(Element, XMLParser) method to construct sub-objects.
This method is similar to XMLParser.buildObject(Element, XMLParser.ParsingOptions) but can also
parse primitive-typed objects wrapped as XML elements, such as
<integer>42</integer.
buildObjectOrPrimitive in interface XMLParseraElement - a DOM ElementaOptions - option settings
XMLizable, String, or one of the primitive type wrapper objects (e.g.
Integer, Float, Boolean).
InvalidXMLException - if the XML element does not specify a valid object
public ResourceSpecifier parseResourceSpecifier(XMLInputSource aInput)
throws InvalidXMLException
XMLParser.RESOURCE_SPECIFIER_SCHEMA_NAME if it can be found in the classpath.
parseResourceSpecifier in interface XMLParseraInput - the input source from which to read the XML document
ResourceSpecifier object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid ResourceSpecifier
public ResourceSpecifier parseResourceSpecifier(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser.RESOURCE_SPECIFIER_SCHEMA_NAME if it can be found in the classpath.
parseResourceSpecifier in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
ResourceSpecifier object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid ResourceSpecifier
public ResourceMetaData parseResourceMetaData(XMLInputSource aInput)
throws InvalidXMLException
XMLParser.RESOURCE_SPECIFIER_SCHEMA_NAME if it can be found in the classpath.
parseResourceMetaData in interface XMLParseraInput - the input source from which to read the XML document
ResourceMetaData object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid ResourceSpecifier
public ResourceMetaData parseResourceMetaData(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser.RESOURCE_SPECIFIER_SCHEMA_NAME if it can be found in the classpath.
parseResourceMetaData in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
ResourceMetaData object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid ResourceSpecifier
public URISpecifier parseURISpecifier(XMLInputSource aInput)
throws InvalidXMLException
XMLParser.RESOURCE_SPECIFIER_SCHEMA_NAME if it can be found in the classpath.
parseURISpecifier in interface XMLParseraInput - the input source from which to read the XML document
URISpecifier object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid URISpecifier
public URISpecifier parseURISpecifier(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser.RESOURCE_SPECIFIER_SCHEMA_NAME if it can be found in the classpath.
parseURISpecifier in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
URISpecifier object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid URISpecifier
public AnalysisEngineDescription parseAnalysisEngineDescription(XMLInputSource aInput)
throws InvalidXMLException
XMLParser.RESOURCE_SPECIFIER_SCHEMA_NAME if it can be found in the classpath.
parseAnalysisEngineDescription in interface XMLParseraInput - the input source from which to read the XML document
AnalysisEngineDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid AnalysisEngineDescription
public AnalysisEngineDescription parseAnalysisEngineDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser.RESOURCE_SPECIFIER_SCHEMA_NAME if it can be found in the classpath.
parseAnalysisEngineDescription in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
AnalysisEngineDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid AnalysisEngineDescription
@Deprecated
public TaeDescription parseTaeDescription(XMLInputSource aInput)
throws InvalidXMLException
XMLParser.RESOURCE_SPECIFIER_SCHEMA_NAME if it can be found in the classpath.
parseTaeDescription in interface XMLParseraInput - the input source from which to read the XML document
TaeDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid TaeDescription
@Deprecated
public TaeDescription parseTaeDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser.RESOURCE_SPECIFIER_SCHEMA_NAME if it can be found in the classpath.
parseTaeDescription in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
TaeDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid TaeDescription
public ResultSpecification parseResultSpecification(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parseResultSpecification in interface XMLParseraInput - the input source from which to read the XML document
ResultSpecification object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid ResultSpecificationXMLParser.parseResultSpecification(org.apache.uima.util.XMLInputSource)
public ResultSpecification parseResultSpecification(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parseResultSpecification in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
ResultSpecification object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid ResultSpecificationXMLParser.parseResultSpecification(org.apache.uima.util.XMLInputSource)
public CasConsumerDescription parseCasConsumerDescription(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parseCasConsumerDescription in interface XMLParseraInput - the input source from which to read the XML document
CasConsumerDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid CasConsumerDescriptionXMLParser.parseCasConsumerDescription(org.apache.uima.util.XMLInputSource)
public CasConsumerDescription parseCasConsumerDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parseCasConsumerDescription in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
CasConsumerDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid CasConsumerDescriptionXMLParser.parseCasConsumerDescription(org.apache.uima.util.XMLInputSource)
@Deprecated
public CasInitializerDescription parseCasInitializerDescription(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parseCasInitializerDescription in interface XMLParseraInput - the input source from which to read the XML document
CasInitializerDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid CasInitializerDescription
@Deprecated
public CasInitializerDescription parseCasInitializerDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parseCasInitializerDescription in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
CasInitializerDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid CasInitializerDescription
public CollectionReaderDescription parseCollectionReaderDescription(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parseCollectionReaderDescription in interface XMLParseraInput - the input source from which to read the XML document
CollectionReaderDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid CollectionReaderDescription
public CollectionReaderDescription parseCollectionReaderDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parseCollectionReaderDescription in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
CollectionReaderDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid CollectionReaderDescription
public CpeDescription parseCpeDescription(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
NOTE: the option settings XMLParser.ParsingOptions are not currently available for parsing
CpeDescriptions, because they use a different parsing mechanism than the other specifier types.
parseCpeDescription in interface XMLParseraInput - the input source from which to read the XML document
cpeDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid IndexingSpecification
public TypePriorities parseTypePriorities(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parseTypePriorities in interface XMLParseraInput - the input source from which to read the XML document
TypePriorities object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid TypePriorities
public TypePriorities parseTypePriorities(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parseTypePriorities in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
TypePriorities object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid TypePriorities
public TypeSystemDescription parseTypeSystemDescription(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parseTypeSystemDescription in interface XMLParseraInput - the input source from which to read the XML document
TypeSystemDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid TypeSystemDescription
public TypeSystemDescription parseTypeSystemDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parseTypeSystemDescription in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
TypeSystemDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid TypeSystemDescription
public FsIndexCollection parseFsIndexCollection(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parseFsIndexCollection in interface XMLParseraInput - the input source from which to read the XML document
FsIndexCollection object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid FsIndexCollection
public FsIndexCollection parseFsIndexCollection(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parseFsIndexCollection in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
FsIndexCollection object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid FsIndexCollection
public ResourceManagerConfiguration parseResourceManagerConfiguration(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parseResourceManagerConfiguration in interface XMLParseraInput - the input source from which to read the XML document
ResourceManagerConfiguration object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid
ResourceManagerConfiguration
public ResourceManagerConfiguration parseResourceManagerConfiguration(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parseResourceManagerConfiguration in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
ResourceManagerConfiguration object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid
ResourceManagerConfiguration
public FlowControllerDescription parseFlowControllerDescription(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parseFlowControllerDescription in interface XMLParseraInput - the input source from which to read the XML document
FlowControllerDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid FlowControllerDescription
public FlowControllerDescription parseFlowControllerDescription(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parseFlowControllerDescription in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
FlowControllerDescription object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid FlowControllerDescription
public CustomResourceSpecifier parseCustomResourceSpecifier(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parseCustomResourceSpecifier in interface XMLParseraInput - the input source from which to read the XML document
CustomResourceSpecifier object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid CustomResourceSpecifier
public CustomResourceSpecifier parseCustomResourceSpecifier(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parseCustomResourceSpecifier in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
CustomResourceSpecifier object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid CustomResourceSpecifier
public PearSpecifier parsePearSpecifier(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parsePearSpecifier in interface XMLParseraInput - the input source from which to read the XML document
PearSpecifier object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid PearSpecifier
public PearSpecifier parsePearSpecifier(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parsePearSpecifier in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
PearSpecifier object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid PearSpecifier
public IndexBuildSpecification parseIndexBuildSpecification(XMLInputSource aInput)
throws InvalidXMLException
XMLParser
parseIndexBuildSpecification in interface XMLParseraInput - the input source from which to read the XML document
IndexBuildSpecification object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid IndexBuildSpecification
public IndexBuildSpecification parseIndexBuildSpecification(XMLInputSource aInput,
XMLParser.ParsingOptions aOptions)
throws InvalidXMLException
XMLParser
parseIndexBuildSpecification in interface XMLParseraInput - the input source from which to read the XML documentaOptions - option settings
IndexBuildSpecification object constructed from the XML document
InvalidXMLException - if the input XML is not valid or does not specify a valid IndexBuildSpecification
public void addMapping(java.lang.String aElementName,
java.lang.String aClassName)
throws java.lang.ClassNotFoundException
addMapping in interface XMLParseraElementName - the name of an XML elementaClassName - the name of a Class of object to be built. This class must implement XMLizable
and have a zero-argument constructor.
java.lang.ClassNotFoundException - if the class named by aClassName could not be found
UIMA_IllegalArgumentException - if the class named by aClassName does not implement
XMLIzable. @public SaxDeserializer newSaxDeserializer()
XMLParserSaxDeserializer object, which implements the SAX
ContentHandler interface and can be used to deserialize an
XMLizable object from the events sent from a SAX parser. This can be used if the
application already has a SAX parser that generates these events. In most cases, it is easier
to use one of the parse methods on this interface.
The SAX deserializer returned my this method will expand XIncludes but will not do schema validation.
newSaxDeserializer in interface XMLParserContentHandler and can be used to
deserialize an XMLizable object from SAX events.XMLParser.newSaxDeserializer()public SaxDeserializer newSaxDeserializer(XMLParser.ParsingOptions aOptions)
XMLParserSaxDeserializer.
newSaxDeserializer in interface XMLParseraOptions - option settings
ContentHandler and can be used to
deserialize an XMLizable object from SAX events.org.apache.uima.util.XMLParser#newSaxDeserializer(java.lang.String, java.net.URL, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||