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
ConstructorsConstructorDescriptionSaxDeserializer_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 TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidcomment(char[] arg0, int arg1, int arg2) voidendCDATA()voidvoidendDTD()voidendElement(String namespaceURI, String localName, String qName) voidvoidendPrefixMapping(String prefix) Retrieves theXMLizableobject that has been built from the SAX events this object has already received.voidignorableWhitespace(char[] ch, int start, int length) voidprocessingInstruction(String target, String data) voidsetDocumentLocator(Locator locator) voidskippedEntity(String name) voidvoidvoidvoidstartElement(String namespaceURI, String localName, String qName, Attributes atts) voidstartEntity(String name) voidstartPrefixMapping(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:SaxDeserializerRetrieves theXMLizableobject 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:
getObjectin interfaceSaxDeserializer- Returns:
- the deserialized object
- Throws:
InvalidXMLException- if an object could not be constructed- See Also:
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException- See Also:
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException- See Also:
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException- See Also:
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException- See Also:
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException- See Also:
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException- See Also:
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler- See Also:
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException- See Also:
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException- See Also:
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException- See Also:
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException- See Also:
-
comment
- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
SaxDeserializer_impl(XMLParser, XMLParser.ParsingOptions)instead.