org.apache.axis.encoding.ser.castor

Class AxisContentHandler


public class AxisContentHandler
extends DefaultHandler

This ContentHandler delegates all serialization to an axis SerializationContext

Author:
Fabien Nisol

Constructor Summary

AxisContentHandler(SerializationContext context)
Creates a contentHandler delegate

Method Summary

void
characters(char[] ch, int start, int length)
delegates to the serialization context
void
endElement(String uri, String localName, String qName)
delegates to the serialization context
SerializationContext
getContext()
Getter 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 context

Constructor Details

AxisContentHandler

public AxisContentHandler(SerializationContext context)
Creates a contentHandler delegate

Parameters:
context - : axis context to delegate to

Method Details

characters

public void characters(char[] ch,
                       int start,
                       int length)
            throws org.xml.sax.SAXException
delegates to the serialization context


endElement

public void endElement(String uri,
                       String localName,
                       String qName)
            throws SAXException
delegates to the serialization context


getContext

public SerializationContext getContext()
Getter for property context.

Returns:
Value of property context.


setContext

public void setContext(SerializationContext context)
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


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.