net.sourceforge.saxadapter
Class SAXAdapter.NamespaceContextImpl
java.lang.Object
|
+--net.sourceforge.saxadapter.SAXAdapter.NamespaceContextImpl
- All Implemented Interfaces:
- NamespaceContext
- Enclosing class:
- SAXAdapter
- class SAXAdapter.NamespaceContextImpl
- extends java.lang.Object
- implements NamespaceContext
This class wraps the NamespaceSupport object
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. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAXAdapter.NamespaceContextImpl
SAXAdapter.NamespaceContextImpl()
processName
public java.lang.String[] processName(java.lang.String qName,
java.lang.String[] parts,
boolean isAttribute)
- Description copied from interface:
NamespaceContext
- Process a raw XML 1.0 name.
- Specified by:
processName
in interface NamespaceContext
- Following copied from interface:
net.sourceforge.saxadapter.NamespaceContext
- Parameters:
qName
- qualified nameparts
- the parts of the namspace representationisAttribute
- 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)
- Description copied from interface:
NamespaceContext
- Look up a prefix and get the currently-mapped Namespace URI.
- Specified by:
getURI
in interface NamespaceContext
- Following copied from interface:
net.sourceforge.saxadapter.NamespaceContext
- 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)
- Description copied from interface:
NamespaceContext
- Return an enumeration of all prefixes currently declared
for this uri
- Specified by:
getPrefixes
in interface NamespaceContext
- Following copied from interface:
net.sourceforge.saxadapter.NamespaceContext
- 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()
- Description copied from interface:
NamespaceContext
- Return an enumeration of all prefixes currently declared.
- Specified by:
getPrefixes
in interface NamespaceContext
- Following copied from interface:
net.sourceforge.saxadapter.NamespaceContext
- Returns:
- an enumeration of all currently defined prefixes
- See Also:
NamespaceSupport.getPrefixes(String uri)
getPrefix
public java.lang.String getPrefix(java.lang.String uri)
- Description copied from interface:
NamespaceContext
- Return one of the prefixes mapped to a Namespace URI.
- Specified by:
getPrefix
in interface NamespaceContext
- Following copied from interface:
net.sourceforge.saxadapter.NamespaceContext
- 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()
- Description copied from interface:
NamespaceContext
- Return an enumeration of all prefixes currently declared for a URI.
- Specified by:
getDeclaredPrefixes
in interface NamespaceContext
- Following copied from interface:
net.sourceforge.saxadapter.NamespaceContext
- Returns:
- the prefixes declared in the current element
- See Also:
NamespaceSupport.getDeclaredPrefixes()