API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.xml.sax.helpers. NamespaceSupport View Source
Author(s)
David Megginson
Since
SAX 2.0
Version
2.0.1 (sax2r2)
Serial
Hierarchy
 Object
      NamespaceSupport
Implements
Subclasses
Description
public class NamespaceSupport
  Encapsulate Namespace logic for use by applications using SAX, or internally by SAX drivers.
See also:   
Constructors
public NamespaceSupport ()
Create a new Namespace support object.
Methods
Hide/Show inherited methods
public boolean declarePrefix (String prefix, String uri)
  Declare a Namespace prefix.
public Enumeration getDeclaredPrefixes ()
  Return an enumeration of all prefixes declared in this context.
public String getPrefix (String uri)
  Return one of the prefixes mapped to a Namespace URI.
public Enumeration getPrefixes ()
  Return an enumeration of all prefixes whose declarations are active in the current context.
public Enumeration getPrefixes (String uri)
  Return an enumeration of all prefixes for a given URI whose declarations are active in the current context.
public String getURI (String prefix)
  Look up a prefix and get the currently-mapped Namespace URI.
public boolean isNamespaceDeclUris ()
  Returns true if namespace declaration attributes are placed into a namespace.
public void popContext ()
  Revert to the previous Namespace context.
public String processName (String qName, String parts, boolean isAttribute)
  Process a raw XML qualified name, after all declarations in the current context have been handled by declarePrefix().
public void pushContext ()
  Start a new Namespace context.
public void reset ()
  Reset this Namespace support object for reuse.
public void setNamespaceDeclUris (boolean value)
  Controls whether namespace declaration attributes are placed into the NSDECL namespace by processName().
Fields
Hide/Show inherited fields
publicfinalstatic String NSDECL = "http://www.w3.org/xmlns/2000/"
  The namespace declaration URI as a constant.
publicfinalstatic String XMLNS = "http://www.w3.org/XML/1998/namespace"
  The XML Namespace URI as a constant.
Nested Classes
  NamespaceSupport.Context
Internal class for a single Namespace context.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar