net.sf.jaxme.xs.parser
Interface XsObjectCreator


public interface XsObjectCreator

Interface of a an object creating beans.

Author:
Jochen Wiedmann

Method Summary
 XsObject newBean(XsObject pParent, org.xml.sax.Locator pLocator, XsQName pQName)
          Asks the bean creator whether he is willing to create a bean for the given namespace URI and local name.
 

Method Detail

newBean

public XsObject newBean(XsObject pParent,
                        org.xml.sax.Locator pLocator,
                        XsQName pQName)
                 throws org.xml.sax.SAXException

Asks the bean creator whether he is willing to create a bean for the given namespace URI and local name. The bean creator may do either of the following:

  1. Return a new bean.
  2. Return null in order to indicate, that the bean creator delegates the decision to the next bean creator.
  3. Throw a SAX Exception in order to indicate that the combination of namespace URI and local name is invalid.

Throws:
org.xml.sax.SAXException