Name
NamespaceSupport
Synopsis
This utility class exists to help SAX parser implementors handle XML namespaces. It is not commonly used by SAX applications.
public class NamespaceSupport { // Public Constructors public NamespaceSupport( ); // Public Constants 5.0 public static final String NSDECL; ="http://www.w3.org/xmlns/2000/" public static final String XMLNS; ="http://www.w3.org/XML/1998/namespace" // Public Instance Methods public boolean declarePrefix(String prefix, String uri); public java.util.Enumeration getDeclaredPrefixes( ); public String getPrefix(String uri); public java.util.Enumeration getPrefixes( ); public java.util.Enumeration getPrefixes(String uri); public String getURI(String prefix); 5.0 public boolean isNamespaceDeclUris( ); default:false public void popContext( ); public String[ ] processName(String qName, String[ ] parts, boolean isAttribute); public void pushContext( ); public void reset( ); 5.0 public void setNamespaceDeclUris(boolean value); }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.