org.apache.ws.jaxme.impl
Class JMSAXElementParser

java.lang.Object
  extended by org.apache.ws.jaxme.impl.JMSAXGroupParser
      extended by org.apache.ws.jaxme.impl.JMSAXElementParser
Direct Known Subclasses:
JMSAXMixedElementParser

public abstract class JMSAXElementParser
extends JMSAXGroupParser

A subclass of JMSAXGroupParser for parsing complex elements.


Field Summary
protected  java.lang.Object result
           
 
Constructor Summary
JMSAXElementParser()
           
 
Method Summary
 void addAttribute(java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pValue)
          Sets the attribute with the namespace pNamespace and the local name pLocalName to the value pValue.
 int getEndLevel()
          Returns the end elements level (number of nested elements enclosing this element).
 JMUnmarshallerHandlerImpl getHandler()
           
 java.lang.String getLocalName()
          Returns the local name of the element being parsed.
 java.lang.String getNamespaceURI()
          Returns the namespace URI of the element being parsed.
 void init(JMUnmarshallerHandlerImpl pHandler, java.lang.Object pObject, java.lang.String pNamespaceURI, java.lang.String pLocalName, int pLevel)
          Initializes the element parser by setting the required data.
 boolean isAtomic()
          Returns, whether the element has atomic content.
 boolean isEmpty()
          Returns, whether the element is empty.
 void setAttributes(org.xml.sax.Attributes pAttrs)
          Invokes addAttribute(String, String, String) for all the attributes in the list pAttrs.
 
Methods inherited from class org.apache.ws.jaxme.impl.JMSAXGroupParser
addText, endElement, isFinished, isMixed, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected java.lang.Object result
Constructor Detail

JMSAXElementParser

public JMSAXElementParser()
Method Detail

getHandler

public JMUnmarshallerHandlerImpl getHandler()
Specified by:
getHandler in class JMSAXGroupParser

isAtomic

public boolean isAtomic()
Returns, whether the element has atomic content.


isEmpty

public boolean isEmpty()
Returns, whether the element is empty.


getNamespaceURI

public java.lang.String getNamespaceURI()
Returns the namespace URI of the element being parsed.


getLocalName

public java.lang.String getLocalName()
Returns the local name of the element being parsed.


getEndLevel

public int getEndLevel()
Returns the end elements level (number of nested elements enclosing this element).


init

public void init(JMUnmarshallerHandlerImpl pHandler,
                 java.lang.Object pObject,
                 java.lang.String pNamespaceURI,
                 java.lang.String pLocalName,
                 int pLevel)
Initializes the element parser by setting the required data.


addAttribute

public void addAttribute(java.lang.String pNamespaceURI,
                         java.lang.String pLocalName,
                         java.lang.String pValue)
                  throws org.xml.sax.SAXException
Sets the attribute with the namespace pNamespace and the local name pLocalName to the value pValue.

Throws:
org.xml.sax.SAXException

setAttributes

public void setAttributes(org.xml.sax.Attributes pAttrs)
                   throws org.xml.sax.SAXException
Invokes addAttribute(String, String, String) for all the attributes in the list pAttrs.

Throws:
org.xml.sax.SAXException