com.simonstl.moe.namespace
Interface NamespaceSetI

All Superinterfaces:
java.lang.Cloneable, java.util.Collection, ComponentCollectionI, ComponentSetI, java.util.Set
All Known Implementing Classes:
NamespaceSet

public interface NamespaceSetI
extends java.util.Set, ComponentSetI

The NamespaceSetI interface extends ComponentSetI, with some extra functions for Namespaces

This interface is just getting started.

Version 0.01 is foundation.

Version:
0.01 24 August 2001
Author:
Simon St.Laurent

Method Summary
 java.lang.String getPrefix(java.lang.String URI)
          Given a prefix, it returns the URI to which that prefix maps.
 java.lang.String getURI(java.lang.String prefix)
          Given a URI, it returns the first prefix it finds matching it.
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface com.simonstl.moe.ComponentSetI
clone
 
Methods inherited from interface com.simonstl.moe.ComponentCollectionI
setParent, toAttributes, toAttributes, toElements, toElements, toString, toString
 

Method Detail

getURI

public java.lang.String getURI(java.lang.String prefix)
Given a URI, it returns the first prefix it finds matching it. Because multiple namespace prefixes may be mapped to a given URI, this may not return the expected prefix.

getPrefix

public java.lang.String getPrefix(java.lang.String URI)
Given a prefix, it returns the URI to which that prefix maps. This is a processed set of namespaces applying to a current context, so only one URI will be returned.