@Runtime public interface SAXEventStream
Modifier and Type | Interface and Description |
---|---|
static interface |
SAXEventStream.EtherealMatcher |
static class |
SAXEventStream.MatchException
Raised by calls which expect definitely a certain tag.
|
Modifier and Type | Method and Description |
---|---|
void |
consume()
Consumes any event, and makes its successor the new head.
|
String |
consumeCharacters()
Consumes any chararcter data event, and returns the data.
|
void |
consumedEthereals(SAXEventStream.EtherealMatcher matcher) |
String |
getLocalName()
Returns the local name of the current head, i.e.
|
Location<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.
|
NamespaceName |
getNamespaceName()
Returns the namespace name of the current head, i.e.
|
String |
getNamespaceURI()
Returns the namespace URI of the current head, i.e.
|
String |
getQualifiedName()
Returns the qualified name of the current head, i.e.
|
String |
headToString()
Returns the conventional textual representation of the current head.
|
boolean |
lookaheadCharacters()
Returns whether the next SAX event represents character data.
|
boolean |
lookaheadEndDocument()
Returns whether the next SAX event is the "End of Document" element.
|
boolean |
lookaheadEndElement()
Returns whether the next SAX event is any end element event
(= close element tag)
|
boolean |
lookaheadEndElement(NamespaceName name)
Returns whether the next SAX event is a certain end element event
(= close element tag)
|
boolean |
lookaheadEndElement(String name)
Returns whether the next SAX event is a certain end element event
(= close element tag)
|
boolean |
lookaheadStartElement()
Returns whether the next SAX event is any start element event
(= open element tag)
|
boolean |
lookaheadStartElement(NamespaceName name)
Returns whether the next SAX event is a certain start element event
(= open element tag)
|
boolean |
lookaheadStartElement(String name)
Returns whether the next SAX event is a certain start element event
(= open element tag)
|
Location<XMLDocumentIdentifier> |
matchedEtherealLocation() |
void |
matchEndDocument()
Consumes the first element (if it is the indicated end document element).
|
void |
matchEndElement(NamespaceName name)
Consumes the first element (if it is the indicated end element).
|
void |
matchEndElement(String name)
Consumes the first element (if it is the indicated end element).
|
Attributes |
matchStartElement(NamespaceName name)
Consumes the first element (if it is the indicated start element) and
returns its attribute set.
|
Attributes |
matchStartElement(String name)
Consumes the first element (if it is the indicated start element) and
returns its attribute set.
|
boolean lookaheadCharacters()
boolean lookaheadStartElement(NamespaceName name)
boolean lookaheadStartElement(String name)
boolean lookaheadStartElement()
Attributes matchStartElement(NamespaceName name) throws SAXEventStream.MatchException
SAXEventStream.MatchException
Attributes matchStartElement(String name) throws SAXEventStream.MatchException
SAXEventStream.MatchException
boolean lookaheadEndElement(NamespaceName name)
boolean lookaheadEndElement(String name)
boolean lookaheadEndElement()
void matchEndElement(NamespaceName name) throws SAXEventStream.MatchException
SAXEventStream.MatchException
void matchEndElement(String name) throws SAXEventStream.MatchException
SAXEventStream.MatchException
boolean lookaheadEndDocument()
void matchEndDocument() throws SAXEventStream.MatchException
SAXEventStream.MatchException
String getNamespaceURI()
String getLocalName()
String getQualifiedName()
NamespaceName getNamespaceName()
void consume()
String consumeCharacters()
void consumedEthereals(SAXEventStream.EtherealMatcher matcher)
Location<XMLDocumentIdentifier> matchedEtherealLocation()
Location<XMLDocumentIdentifier> getLocation()
String headToString()
see also the complete user documentation .