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

java.lang.Object
  extended by org.apache.ws.jaxme.xs.parser.impl.ChildSetterImpl
All Implemented Interfaces:
ChildSetter

public class ChildSetterImpl
extends java.lang.Object
implements ChildSetter

Default implementation of a ChildSetter.

Author:
Jochen Wiedmann

Constructor Summary
ChildSetterImpl()
           
 
Method Summary
protected  org.xml.sax.ContentHandler getChildHandler(org.xml.sax.ContentHandler pParent, java.lang.String pQName, java.lang.String pLocalName)
           
 org.xml.sax.ContentHandler getChildHandler(java.lang.String pQName, java.lang.String pNamespaceURI, java.lang.String pLocalName)
          Returns a ContentHandler, which is able to handle the given child element.
protected  java.lang.Object invokeMethod(java.lang.Object pBean, java.lang.reflect.Method pMethod, java.lang.String pName, java.lang.Object[] pArgs)
          This method invokes the beans pBean method pMethod with the argument array pArgs, returning a child handler for the element pQName.
protected  org.xml.sax.ContentHandler newXsSAXParser(XsSAXParser pParent, java.lang.Object pBean)
          Creates a new instance of XsSAXParser, inheriting most properties from its parent parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildSetterImpl

public ChildSetterImpl()
Method Detail

invokeMethod

protected java.lang.Object invokeMethod(java.lang.Object pBean,
                                        java.lang.reflect.Method pMethod,
                                        java.lang.String pName,
                                        java.lang.Object[] pArgs)
                                 throws org.xml.sax.SAXException

This method invokes the beans pBean method pMethod with the argument array pArgs, returning a child handler for the element pQName.

Throws:
org.xml.sax.SAXException

getChildHandler

public org.xml.sax.ContentHandler getChildHandler(java.lang.String pQName,
                                                  java.lang.String pNamespaceURI,
                                                  java.lang.String pLocalName)
                                           throws org.xml.sax.SAXException
Description copied from interface: ChildSetter

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
Throws:
org.xml.sax.SAXException
See Also:
XSParser.getContext()

newXsSAXParser

protected org.xml.sax.ContentHandler newXsSAXParser(XsSAXParser pParent,
                                                    java.lang.Object pBean)

Creates a new instance of XsSAXParser, inheriting most properties from its parent parser.


getChildHandler

protected org.xml.sax.ContentHandler getChildHandler(org.xml.sax.ContentHandler pParent,
                                                     java.lang.String pQName,
                                                     java.lang.String pLocalName)
                                              throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException