org.apache.xml.utils
Class PrefixForUriEnumerator

java.lang.Object
  extended by org.apache.xml.utils.PrefixForUriEnumerator
All Implemented Interfaces:
java.util.Enumeration

 class PrefixForUriEnumerator
extends java.lang.Object
implements java.util.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.


Field Summary
private  java.util.Enumeration allPrefixes
           
private  java.lang.String lookahead
           
private  NamespaceSupport2 nsup
           
private  java.lang.String uri
           
 
Constructor Summary
PrefixForUriEnumerator(NamespaceSupport2 nsup, java.lang.String uri, java.util.Enumeration allPrefixes)
           
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allPrefixes

private java.util.Enumeration allPrefixes

uri

private java.lang.String uri

lookahead

private java.lang.String lookahead

nsup

private NamespaceSupport2 nsup
Constructor Detail

PrefixForUriEnumerator

PrefixForUriEnumerator(NamespaceSupport2 nsup,
                       java.lang.String uri,
                       java.util.Enumeration allPrefixes)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration