Package org.apache.axiom.truth.xml.spi
Interface Traverser
-
public interface Traverser
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<QName,String>getAttributes()Get the attributes for the current element.StringgetEntityName()Map<String,String>getNamespaces()Get the namespace declarations for the current element.StringgetPIData()StringgetPITarget()StringgetPublicId()QNamegetQName()StringgetRootName()StringgetSystemId()StringgetText()Eventnext()
-
-
-
Method Detail
-
next
Event next() throws TraverserException
- Throws:
TraverserException
-
getRootName
String getRootName()
-
getPublicId
String getPublicId()
-
getSystemId
String getSystemId()
-
getQName
QName getQName()
-
getAttributes
Map<QName,String> getAttributes()
Get the attributes for the current element. Only valid if the last call tonext()returnedEvent.START_ELEMENT.- Returns:
- the attributes of the element, or
nullif the element has no attributes
-
getNamespaces
Map<String,String> getNamespaces()
Get the namespace declarations for the current element. Only valid if the last call tonext()returnedEvent.START_ELEMENT. Namespace declarations for the default namespace are represented using an empty string as prefix.- Returns:
- the namespace declarations of the element, or
nullif the element has no namespace declarations
-
getText
String getText()
-
getEntityName
String getEntityName()
-
getPITarget
String getPITarget()
-
getPIData
String getPIData()
-
-