Package org.apache.ws.jaxme

Examples of org.apache.ws.jaxme.JMManager


    public void startElement(String pNamespaceURI, String pLocalName,
                             String pQName, Attributes pAttrs) throws SAXException {
    if (level++ == 0) {
      JAXBContextImpl context = unmarshaller.getJAXBContextImpl();
      JMManager manager;
      QName qName = new QName(pNamespaceURI, pLocalName);
      try {
        manager = context.getManager(qName);
      } catch (JAXBException e) {
        throw new SAXException("Unable to instantiate manager for element " + qName, e);
      }
      Object o = manager.getElementS();
      JMSAXElementParser parser = manager.getHandler();
      parser.init(this, o, pNamespaceURI, pLocalName, 1);
      parser.setAttributes(pAttrs);
      groupParsers.clear();
      result = o;
      addElementParser(parser);
View Full Code Here


   *
   * @throws JAXBException No Manager is registered for the
   *   given QName.
   */
  public JMManager getManager(QName pQName) throws JAXBException {
    JMManager manager = getManagerByQName(pQName);
    if (manager == null) {
      throw new JAXBException("A Manager for " + pQName + " is not declared.");
    }
    return manager;
  }
View Full Code Here

   * @throws JAXBException No Manager is registered for the
   *   given QName.
   * @see #getManagerS(Class)
   */
  public JMManager getManager(Class pElementInterface) throws JAXBException {
    JMManager manager = getManagerByInterface(pElementInterface);
    if (manager == null) {
      throw new JAXBException("A Manager for " + pElementInterface.getName() +
      " is not declared.");
    }
    return manager;
View Full Code Here

   * @throws SAXException No Manager is registered for the
   *   given QName.
   * @see #getManager(Class)
   */
  public JMManager getManagerS(Class pElementInterface) throws SAXException {
    JMManager manager = getManagerByInterface(pElementInterface);
    if (manager == null) {
      throw new SAXException("A Manager for " + pElementInterface.getName() +
                   " is not declared.");
    }
    return manager;
View Full Code Here

  }

  /** <p>Returns a new instance of JMPM.</p>
   */
  public PM getJMPM(Class pElementInterface) throws PMException {
    JMManager manager = getManagerByInterface(pElementInterface);
    Class c = manager.getPmClass();
    if (c == null) {
      throw new PMException("No persistency class configured for " +
                             pElementInterface.getName());
    }
    try {
View Full Code Here

  }

  /** <p>Returns a new instance of JMPM.</p>
   */
  public PM getJMPM(QName pQName) throws PMException {
    JMManager manager = getManagerByQName(pQName);
    Class c = manager.getPmClass();
    if (c == null) {
      throw new PMException("No persistency class configured for " + pQName);
    }
    try {
      PM pm = (PM) c.newInstance();
View Full Code Here

    public void startElement(String pNamespaceURI, String pLocalName,
                             String pQName, Attributes pAttrs) throws SAXException {
    if (level++ == 0) {
      JAXBContextImpl context = unmarshaller.getJAXBContextImpl();
      JMManager manager;
      QName qName = new QName(pNamespaceURI, pLocalName);
      try {
        manager = context.getManager(qName);
      } catch (JAXBException e) {
        throw new SAXException("Unable to instantiate manager for element " + qName, e);
      }
      Object o = manager.getElementS();
      JMSAXElementParser parser = manager.getHandler();
      parser.init(this, o, pNamespaceURI, pLocalName, 1);
      parser.setAttributes(pAttrs);
      groupParsers.clear();
      result = o;
      addElementParser(parser);
View Full Code Here

   *
   * @throws ConfiguratorException No Manager is registered for the
   *   given QName.
   */
  public JMManager getManager(QName pQName) throws JAXBException {
    JMManager manager = getManagerByQName(pQName);
    if (manager == null) {
      throw new JAXBException("A Manager for " + pQName + " is not declared.");
    }
    return manager;
  }
View Full Code Here

   *
   * @throws ConfiguratorException No Manager is registered for the
   *   given QName.
   */
  public JMManager getManager(Class pElementInterface) throws JAXBException {
    JMManager manager = getManagerByInterface(pElementInterface);
    if (manager == null) {
      throw new JAXBException("A Manager for " + pElementInterface.getName() +
                               " is not declared.");
    }
    return manager;
View Full Code Here

   *
   * @throws ConfiguratorException A Manager for <code>pQName</code>
   *   was not declared or creating the instance caused an exception.
   */
  public Object getElement(Class pElementInterface) throws JAXBException {
    JMManager manager = getManagerByInterface(pElementInterface);
    if (manager == null) {
      throw new JAXBException("No manager configured for " + pElementInterface.getName());
    }
    Class c = manager.getElementClass();
    if (c == null) {
      throw new JAXBException("No element class configured for " +
                               pElementInterface.getName());
    }
    try {
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.JMManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.