net.sourceforge.saxadapter
Interface NamespaceContext

All Known Implementing Classes:
SAXAdapter.NamespaceContextImpl

public interface NamespaceContext

This interface provides access to namespace information during a parse. The methods were derived from the accessor methods of NamespaceSupport

Author:
Mark Priest
See Also:
NamespaceSupport

Method Summary
 java.util.Enumeration getDeclaredPrefixes()
          Return an enumeration of all prefixes currently declared for a URI.
 java.lang.String getPrefix(java.lang.String uri)
          Return one of the prefixes mapped to a Namespace URI.
 java.util.Enumeration getPrefixes()
          Return an enumeration of all prefixes currently declared.
 java.util.Enumeration getPrefixes(java.lang.String uri)
          Return an enumeration of all prefixes currently declared for this uri
 java.lang.String getURI(java.lang.String prefix)
          Look up a prefix and get the currently-mapped Namespace URI.
 java.lang.String[] processName(java.lang.String qName, java.lang.String[] parts, boolean isAttribute)
          Process a raw XML 1.0 name.
 

Method Detail

processName

public java.lang.String[] processName(java.lang.String qName,
                                      java.lang.String[] parts,
                                      boolean isAttribute)
Process a raw XML 1.0 name.
Parameters:
qName - qualified name
parts - the parts of the namspace representation
isAttribute - true if the name is an attribute name, false if an element name
Returns:
an array of String representing the name representation
See Also:
NamespaceSupport.processName(String qName, String[] parts, boolean isAttribute)

getURI

public java.lang.String getURI(java.lang.String prefix)
Look up a prefix and get the currently-mapped Namespace URI.
Parameters:
prefix - the prefix for which the URI is to be determined
Returns:
the associated URI
See Also:
NamespaceSupport.getURI(String prefix)

getPrefixes

public java.util.Enumeration getPrefixes(java.lang.String uri)
Return an enumeration of all prefixes currently declared for this uri
Parameters:
uri - the URI for which the set of prefixes is desired
Returns:
an enumeration of the prefixes associated with the specified URI
See Also:
NamespaceSupport.getPrefixes()

getPrefixes

public java.util.Enumeration getPrefixes()
Return an enumeration of all prefixes currently declared.
Returns:
an enumeration of all currently defined prefixes
See Also:
NamespaceSupport.getPrefixes(String uri)

getPrefix

public java.lang.String getPrefix(java.lang.String uri)
Return one of the prefixes mapped to a Namespace URI.
Parameters:
uri - the URI for which the prefix is desiredS
Returns:
the prefix associated with the URI
See Also:
NamespaceSupport.getPrefix(String uri)

getDeclaredPrefixes

public java.util.Enumeration getDeclaredPrefixes()
Return an enumeration of all prefixes currently declared for a URI.
Returns:
the prefixes declared in the current element
See Also:
NamespaceSupport.getDeclaredPrefixes()