Package jadex.xml.reader
Interface IXMLReader
-
- All Known Implementing Classes:
StaxReaderWrapper
public interface IXMLReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes the reader.int
getAttributeCount()
java.lang.String
getAttributeLocalName(int i)
java.lang.String
getAttributeNamespace(int i)
java.lang.String
getAttributePrefix(int i)
java.util.Map<java.lang.String,java.lang.String>
getAttributes()
Returns the attributes.java.lang.String
getAttributeValue(int i)
XmlTag
getClosedTag()
Get the XML tag struct of the last closed tag.int
getEventType()
Gets the XML event type.java.lang.String
getLocalName()
ILocation
getLocation()
Returns the current parser location.QName
getName()
java.lang.String
getText()
Get the text for the element.XmlTag
getXmlTag()
Get the XML tag struct.java.util.LinkedList<XmlTag>
getXmlTagStack()
Get the XML tag stack.boolean
hasNext()
Returns if the reader has more events.int
next()
Selects the next event.
-
-
-
Method Detail
-
getEventType
int getEventType()
Gets the XML event type.- Returns:
- Event type.
-
hasNext
boolean hasNext()
Returns if the reader has more events.- Returns:
- True, if there are more events.
-
next
int next()
Selects the next event.
-
getXmlTag
XmlTag getXmlTag()
Get the XML tag struct.- Returns:
- Struct defining the tag.
-
getClosedTag
XmlTag getClosedTag()
Get the XML tag struct of the last closed tag.- Returns:
- Struct defining the tag.
-
getXmlTagStack
java.util.LinkedList<XmlTag> getXmlTagStack()
Get the XML tag stack.- Returns:
- Stack defining the tags.
-
getAttributes
java.util.Map<java.lang.String,java.lang.String> getAttributes()
Returns the attributes.- Returns:
- The attributes.
-
getText
java.lang.String getText()
Get the text for the element.- Returns:
- The text.
-
close
void close()
Closes the reader.
-
getLocation
ILocation getLocation()
Returns the current parser location.- Returns:
- Location
-
getLocalName
java.lang.String getLocalName()
-
getAttributeCount
int getAttributeCount()
-
getAttributeLocalName
java.lang.String getAttributeLocalName(int i)
-
getAttributeValue
java.lang.String getAttributeValue(int i)
-
getName
QName getName()
-
getAttributePrefix
java.lang.String getAttributePrefix(int i)
-
getAttributeNamespace
java.lang.String getAttributeNamespace(int i)
-
-