org.apache.ws.jaxme.impl

Class JMSAXElementParser

public abstract class JMSAXElementParser extends JMSAXGroupParser

A subclass of JMSAXGroupParser for parsing complex elements.
Field Summary
protected Objectresult
Method Summary
voidaddAttribute(String pNamespaceURI, String pLocalName, String pValue)
Sets the attribute with the namespace pNamespace and the local name pLocalName to the value pValue.
intgetEndLevel()
Returns the end elements level (number of nested elements enclosing this element).
JMUnmarshallerHandlerImplgetHandler()
StringgetLocalName()
Returns the local name of the element being parsed.
StringgetNamespaceURI()
Returns the namespace URI of the element being parsed.
voidinit(JMUnmarshallerHandlerImpl pHandler, Object pObject, String pNamespaceURI, String pLocalName, int pLevel)
Initializes the element parser by setting the required data.
booleanisAtomic()
Returns, whether the element has atomic content.
booleanisEmpty()
Returns, whether the element is empty.
voidsetAttributes(Attributes pAttrs)
Invokes JMSAXElementParser for all the attributes in the list pAttrs.

Field Detail

result

protected Object result

Method Detail

addAttribute

public void addAttribute(String pNamespaceURI, String pLocalName, String pValue)
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()

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)
Invokes JMSAXElementParser for all the attributes in the list pAttrs.