Class AxisContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.axis.encoding.ser.castor.AxisContentHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
This ContentHandler delegates all serialization to an axis SerializationContext
- Author:
- Fabien Nisol
-
Constructor Summary
ConstructorsConstructorDescriptionAxisContentHandler
(SerializationContext context) Creates a contentHandler delegate -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) delegates to the serialization contextvoid
endElement
(String uri, String localName, String qName) delegates to the serialization contextGetter for property context.void
setContext
(SerializationContext context) Setter for property context.void
startElement
(String uri, String localName, String qName, Attributes attributes) delegates to the serialization contextMethods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
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
-
AxisContentHandler
Creates a contentHandler delegate- Parameters:
context
- : axis context to delegate to
-
-
Method Details
-
getContext
Getter for property context.- Returns:
- Value of property context.
-
setContext
Setter for property context.- Parameters:
context
- New value of property context.
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException delegates to the serialization context- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
delegates to the serialization context- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
delegates to the serialization context- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-