Package eu.bandm.tools.util.xml
Interface SAXEventStream
- All Known Implementing Classes:
- SAXEventQueue
public interface SAXEventStream
Storage for re-ified SAX events supporting look-ahead.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic classRaised by calls which expect definitely a certain tag.
- 
Method SummaryModifier and TypeMethodDescriptionvoidconsume()Consumes any event, and makes its successor the new head.Consumes any chararcter data event, and returns the data.voidReturns the local name of the current head, i.e.Delivers the location related to the next head element (tag or character data), Normally this should be the start of the textual representation of this element in the source text.Returns the namespace name of the current head, i.e.Returns the namespace URI of the current head, i.e.Returns the qualified name of the current head, i.e.Returns the conventional textual representation of the current head.booleanReturns whether the next SAX event represents character data.booleanReturns whether the next SAX event is the "End of Document" element.booleanReturns whether the next SAX event is any end element event (= close element tag)booleanReturns whether the next SAX event is a certain end element event (= close element tag)booleanlookaheadEndElement(String name) Returns whether the next SAX event is a certain end element event (= close element tag)booleanReturns whether the next SAX event is any start element event (= open element tag)booleanReturns whether the next SAX event is a certain start element event (= open element tag)booleanlookaheadStartElement(String name) Returns whether the next SAX event is a certain start element event (= open element tag)voidConsumes the first element (if it is the indicated end document element).voidmatchEndElement(NamespaceName name) Consumes the first element (if it is the indicated end element).voidmatchEndElement(String name) Consumes the first element (if it is the indicated end element).Consumes the first element (if it is the indicated start element) and returns its attribute set.matchStartElement(String name) Consumes the first element (if it is the indicated start element) and returns its attribute set.
- 
Method Details- 
lookaheadCharactersboolean lookaheadCharacters()Returns whether the next SAX event represents character data.
- 
lookaheadStartElementReturns whether the next SAX event is a certain start element event (= open element tag)
- 
lookaheadStartElementReturns whether the next SAX event is a certain start element event (= open element tag)
- 
lookaheadStartElementboolean lookaheadStartElement()Returns whether the next SAX event is any start element event (= open element tag)
- 
matchStartElementConsumes the first element (if it is the indicated start element) and returns its attribute set.- Throws:
- SAXEventStream.MatchException
 
- 
matchStartElementConsumes the first element (if it is the indicated start element) and returns its attribute set.- Throws:
- SAXEventStream.MatchException
 
- 
lookaheadEndElementReturns whether the next SAX event is a certain end element event (= close element tag)
- 
lookaheadEndElementReturns whether the next SAX event is a certain end element event (= close element tag)
- 
lookaheadEndElementboolean lookaheadEndElement()Returns whether the next SAX event is any end element event (= close element tag)
- 
matchEndElementConsumes the first element (if it is the indicated end element).- Throws:
- SAXEventStream.MatchException
 
- 
matchEndElementConsumes the first element (if it is the indicated end element).- Throws:
- SAXEventStream.MatchException
 
- 
lookaheadEndDocumentboolean lookaheadEndDocument()Returns whether the next SAX event is the "End of Document" element.
- 
matchEndDocumentConsumes the first element (if it is the indicated end document element).- Throws:
- SAXEventStream.MatchException
 
- 
getNamespaceURIString getNamespaceURI()Returns the namespace URI of the current head, i.e. the next element to consume.
- 
getLocalNameString getLocalName()Returns the local name of the current head, i.e. the next element to consume.
- 
getQualifiedNameString getQualifiedName()Returns the qualified name of the current head, i.e. the next element to consume.
- 
getNamespaceNameNamespaceName getNamespaceName()Returns the namespace name of the current head, i.e. the next element to consume.
- 
consumevoid consume()Consumes any event, and makes its successor the new head.
- 
consumeCharactersString consumeCharacters()Consumes any chararcter data event, and returns the data.
- 
consumedEthereals
- 
matchedEtherealLocationLocation<XMLDocumentIdentifier> matchedEtherealLocation()
- 
getLocationLocation<XMLDocumentIdentifier> getLocation()Delivers the location related to the next head element (tag or character data), Normally this should be the start of the textual representation of this element in the source text.
- 
headToStringString headToString()Returns the conventional textual representation of the current head. Raises Nullpointer Exception if no such exists.
 
-