Package org.apache.uima.util.impl
Class SaxDeserializer_impl
java.lang.Object
org.apache.uima.util.impl.SaxDeserializer_impl
- All Implemented Interfaces:
SaxDeserializer
,ContentHandler
,LexicalHandler
Reference implementation of
SaxDeserializer
.-
Constructor Summary
ConstructorDescriptionSaxDeserializer_impl
(XMLParser aUimaXmlParser, String aNamespaceForSchema, URL aSchemaUrl, XMLParser.ParsingOptions aOptions) Deprecated.SaxDeserializer_impl
(XMLParser aUimaXmlParser, XMLParser.ParsingOptions aOptions) Creates a new SAX Deserializer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
comment
(char[] arg0, int arg1, int arg2) void
endCDATA()
void
void
endDTD()
void
endElement
(String namespaceURI, String localName, String qName) void
void
endPrefixMapping
(String prefix) Retrieves theXMLizable
object that has been built from the SAX events this object has already received.void
ignorableWhitespace
(char[] ch, int start, int length) void
processingInstruction
(String target, String data) void
setDocumentLocator
(Locator locator) void
skippedEntity
(String name) void
void
void
void
startElement
(String namespaceURI, String localName, String qName, Attributes atts) void
startEntity
(String name) void
startPrefixMapping
(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SaxDeserializer_impl
Creates a new SAX Deserializer.- Parameters:
aUimaXmlParser
- the UIMA XML parser that knows the XML element to Java class mappings and which is used to assist in the serialization.aOptions
- option settings
-
SaxDeserializer_impl
@Deprecated public SaxDeserializer_impl(XMLParser aUimaXmlParser, String aNamespaceForSchema, URL aSchemaUrl, XMLParser.ParsingOptions aOptions) Deprecated.Creates a new SAX Deserializer.- Parameters:
aUimaXmlParser
- the UIMA XML parser that knows the XML element to Java class mappings and which is used to assist in the serialization.aNamespaceForSchema
- not usedaSchemaUrl
- not usedaOptions
- option settings
-
-
Method Details
-
getObject
Description copied from interface:SaxDeserializer
Retrieves theXMLizable
object that has been built from the SAX events this object has already received. Once this method is called, all state is cleared from this object and it is ready to deserialize another object.- Specified by:
getObject
in interfaceSaxDeserializer
- Returns:
- the deserialized object
- Throws:
InvalidXMLException
- if an object could not be constructed- See Also:
-
characters
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
- See Also:
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
SaxDeserializer_impl(XMLParser, XMLParser.ParsingOptions)
instead.