Package jadex.bpmn.model.io
Class StaxReaderWrapper
java.lang.Object
jadex.bpmn.model.io.StaxReaderWrapper
- All Implemented Interfaces:
IXMLReader
Wrapper for the Java stax interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BufferedInputStreamThe stream.protected XmlTagThe last tag that was closed.protected XMLStreamReaderThe wrapped reader.protected LinkedList<XmlTag> The current tag. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the reader.intgetAttributeLocalName(int i) getAttributeNamespace(int i) getAttributePrefix(int i) Returns the attributes.getAttributeValue(int i) Get the XML tag struct of the last closed tag.intGets the XML event type.Returns the current parser location.getName()getText()Get the text for the element.Get the XML tag struct.Get the XML tag stack.booleanhasNext()Returns if the reader has more events.intnext()Selects the next event.
-
Field Details
-
bis
The stream. -
reader
The wrapped reader. -
tagstack
The current tag. -
closedtag
The last tag that was closed.
-
-
Constructor Details
-
StaxReaderWrapper
-
StaxReaderWrapper
-
-
Method Details
-
getEventType
public int getEventType()Gets the XML event type.- Specified by:
getEventTypein interfaceIXMLReader- Returns:
- Event type.
-
hasNext
public boolean hasNext()Returns if the reader has more events.- Specified by:
hasNextin interfaceIXMLReader- Returns:
- True, if there are more events.
-
next
public int next()Selects the next event.- Specified by:
nextin interfaceIXMLReader
-
getXmlTag
Get the XML tag struct.- Specified by:
getXmlTagin interfaceIXMLReader- Returns:
- Struct defining the tag.
-
getClosedTag
Get the XML tag struct of the last closed tag.- Specified by:
getClosedTagin interfaceIXMLReader- Returns:
- Struct defining the tag.
-
getXmlTagStack
Get the XML tag stack.- Specified by:
getXmlTagStackin interfaceIXMLReader- Returns:
- Stack defining the tags.
-
getAttributes
Returns the attributes.- Specified by:
getAttributesin interfaceIXMLReader- Returns:
- The attributes.
-
getText
Get the text for the element.- Specified by:
getTextin interfaceIXMLReader- Returns:
- The text.
-
close
public void close()Closes the reader.- Specified by:
closein interfaceIXMLReader
-
getLocation
Returns the current parser location.- Specified by:
getLocationin interfaceIXMLReader- Returns:
- Location
-
getLocalName
- Specified by:
getLocalNamein interfaceIXMLReader
-
getAttributeCount
public int getAttributeCount()- Specified by:
getAttributeCountin interfaceIXMLReader
-
getAttributeLocalName
- Specified by:
getAttributeLocalNamein interfaceIXMLReader
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceIXMLReader
-
getName
- Specified by:
getNamein interfaceIXMLReader
-
getAttributePrefix
- Specified by:
getAttributePrefixin interfaceIXMLReader
-
getAttributeNamespace
- Specified by:
getAttributeNamespacein interfaceIXMLReader
-