|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GuReader
A reader provides sequential, forward-only, access to an XML tree.
The XML tree is read as a stream of events. After each event, the properties of the underlying stream may be
inspected.
Method Summary | |
---|---|
java.lang.Iterable<javax.xml.namespace.QName> |
getAttributeNames(boolean orderCanonical)
Returns the set of attribute names for the current node. |
java.lang.String |
getAttributeValue(java.lang.String namespaceURI,
java.lang.String localName)
Returns the dm:typed-value of the attribute with the specified dm:name. |
int |
getLineNumber()
Returns the line number, or -1 if none is available. |
java.lang.String |
getLocalName()
|
java.lang.String |
getNamespaceLocal(java.lang.String prefix)
|
java.lang.Iterable<java.lang.String> |
getNamespaceNames(boolean orderCanonical)
Returns the set of namespace names (prefixes) for the current node. |
java.lang.String |
getNamespaceURI()
|
java.lang.String |
getPrefix()
|
java.lang.String |
getStringValue()
|
boolean |
hasAttributes()
|
boolean |
hasNamespaces()
|
boolean |
hasNext()
Determines whether there are more events to be read. |
GuEventKind |
next()
Positions the reader to the next event. |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
java.lang.Iterable<javax.xml.namespace.QName> getAttributeNames(boolean orderCanonical)
orderCanonical
- Determines whether the names will be returned in canonical order (lexicographically by namespace URI,
local name).java.lang.String getAttributeValue(java.lang.String namespaceURI, java.lang.String localName)
null
if the attribute does not exist.
namespaceURI
- The dm:namespace-uri of the attribute. Cannot be null
.localName
- The dm:local-name of the attribute. Cannot be null
.int getLineNumber()
-1
if none is available.
java.lang.String getLocalName()
java.lang.String getNamespaceLocal(java.lang.String prefix)
java.lang.Iterable<java.lang.String> getNamespaceNames(boolean orderCanonical)
orderCanonical
- Determines whether the names will be returned in canonical order (lexicographically by local name).java.lang.String getNamespaceURI()
java.lang.String getPrefix()
java.lang.String getStringValue()
boolean hasAttributes()
true
if the node has attributes, otherwise false
.boolean hasNamespaces()
true
if the node has prefix-to-namespace mappings, otherwise false
.boolean hasNext()
GuEventKind next() throws GuAbortException
GuEventKind
value indicating the type of event.
GuAbortException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |