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 TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) delegates to the serialization contextvoidendElement(String uri, String localName, String qName) delegates to the serialization contextGetter for property context.voidsetContext(SerializationContext context) Setter for property context.voidstartElement(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, warningMethods 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
-
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:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
delegates to the serialization context- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
delegates to the serialization context- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-