org.apache.ws.jaxme.xs.parser.impl

Class ChildSetterImpl

Implemented Interfaces:
ChildSetter

public class ChildSetterImpl
extends java.lang.Object
implements ChildSetter

Default implementation of a ChildSetter.
Author:
Jochen Wiedmann

Method Summary

protected ContentHandler
getChildHandler(ContentHandler pParent, String pQName, String pLocalName)
ContentHandler
getChildHandler(String pQName, String pNamespaceURI, String pLocalName)
Returns a ContentHandler, which is able to handle the given child element.
protected Object
invokeMethod(Object pBean, Method pMethod, String pName, Object[] pArgs)
This method invokes the beans pBean method pMethod with the argument array pArgs, returning a child handler for the element pQName.
protected ContentHandler
newXsSAXParser(XsSAXParser pParent, Object pBean)
Creates a new instance of XsSAXParser, inheriting most properties from its parent parser.

Method Details

getChildHandler

protected ContentHandler getChildHandler(ContentHandler pParent,
                                         String pQName,
                                         String pLocalName)
            throws SAXException

getChildHandler

public ContentHandler getChildHandler(String pQName,
                                      String pNamespaceURI,
                                      String pLocalName)
            throws SAXException
Returns a ContentHandler, which is able to handle the given child element.
Specified by:
getChildHandler in interface ChildSetter
Parameters:
pQName - The child elements fully qualified name
pNamespaceURI - The child elements namespace URI
pLocalName - The child elements local name

invokeMethod

protected Object invokeMethod(Object pBean,
                              Method pMethod,
                              String pName,
                              Object[] pArgs)
            throws SAXException
This method invokes the beans pBean method pMethod with the argument array pArgs, returning a child handler for the element pQName.

newXsSAXParser

protected ContentHandler newXsSAXParser(XsSAXParser pParent,
                                        Object pBean)
Creates a new instance of XsSAXParser, inheriting most properties from its parent parser.