public final class NamespaceBinding extends Object
Modifier and Type | Field and Description |
---|---|
static NamespaceBinding |
DEFAULT_UNDECLARATION |
static NamespaceBinding[] |
EMPTY_ARRAY |
static NamespaceBinding |
XML |
Constructor and Description |
---|
NamespaceBinding(String prefix,
String uri)
Create a binding of a prefix to a URI
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Test if this namespace binding is the same as another
|
String |
getPrefix()
Get the prefix part of the binding
|
String |
getURI()
Get the URI part of the binding
|
int |
hashCode() |
boolean |
isDefaultUndeclaration()
Ask whether this is an undeclaration of the default prefix, that is, a namespace binding
corresponding to
xmlns="" |
boolean |
isXmlNamespace()
Ask whether this is a binding for the XML namespace
|
static NamespaceBinding |
makeNamespaceBinding(CharSequence prefix,
CharSequence uri)
Create a binding of a prefix to a URI.
|
public static final NamespaceBinding XML
public static final NamespaceBinding DEFAULT_UNDECLARATION
public static final NamespaceBinding[] EMPTY_ARRAY
public NamespaceBinding(String prefix, String uri)
prefix
- the prefix: either an NCName, or a zero-length string to bind the default namespace.
Must not be null.uri
- the namespace URI: either a URI, or a zero-length string to unbind the prefix. Must
not be null.public static NamespaceBinding makeNamespaceBinding(CharSequence prefix, CharSequence uri)
prefix
- the prefix: either an NCName, or a zero-length string to bind the default namespace.
Must not be null.uri
- the namespace URI: either a URI, or a zero-length string to unbind the prefix. Must
not be null.public String getPrefix()
public String getURI()
public boolean isXmlNamespace()
public boolean isDefaultUndeclaration()
xmlns=""
xmlns=""
public boolean equals(Object obj)
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.