org.apache.xml.utils
Class PrefixForUriEnumerator
java.lang.Object
org.apache.xml.utils.PrefixForUriEnumerator
- All Implemented Interfaces:
- Enumeration
- class PrefixForUriEnumerator
- extends Object
- implements Enumeration
Implementation of Enumeration filter, wrapped
aroung the get-all-prefixes version of the operation. This is NOT
necessarily the most efficient approach; finding the URI and then asking
what prefixes apply to it might make much more sense.
Method Summary |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
Object |
nextElement()
Returns the next element of this enumeration if this enumeration
object has at least one more element to provide. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allPrefixes
private Enumeration allPrefixes
uri
private String uri
lookahead
private String lookahead
nsup
private NamespaceSupport2 nsup
PrefixForUriEnumerator
PrefixForUriEnumerator(NamespaceSupport2 nsup,
String uri,
Enumeration allPrefixes)
hasMoreElements
public boolean hasMoreElements()
- Description copied from interface:
Enumeration
- Tests if this enumeration contains more elements.
- Specified by:
hasMoreElements
in interface Enumeration
- Returns:
true
if and only if this enumeration object
contains at least one more element to provide;
false
otherwise.
nextElement
public Object nextElement()
- Description copied from interface:
Enumeration
- Returns the next element of this enumeration if this enumeration
object has at least one more element to provide.
- Specified by:
nextElement
in interface Enumeration
- Returns:
- the next element of this enumeration.