org.apache.ws.jaxme.impl

Class JMSAXElementParser


public abstract class JMSAXElementParser
extends JMSAXGroupParser

A subclass of JMSAXGroupParser for parsing complex elements.

Field Summary

protected Object
result

Method Summary

void
addAttribute(String pNamespaceURI, String pLocalName, 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()
String
getLocalName()
Returns the local name of the element being parsed.
String
getNamespaceURI()
Returns the namespace URI of the element being parsed.
void
init(JMUnmarshallerHandlerImpl pHandler, Object pObject, String pNamespaceURI, 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(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, getHandler, isFinished, isMixed, startElement

Field Details

result

protected Object result

Method Details

addAttribute

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

getEndLevel

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

getHandler

public JMUnmarshallerHandlerImpl getHandler()
Overrides:
getHandler in interface JMSAXGroupParser

getLocalName

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

getNamespaceURI

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

init

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

isAtomic

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

isEmpty

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

setAttributes

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