|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.om.NamespaceBinding
public final class NamespaceBinding
Represents the binding of a prefix to a URI. Also, in some contexts, represents an unbinding, by virtue of the URI being set to a zero length string.
| Field Summary | |
|---|---|
static NamespaceBinding |
DEFAULT_UNDECLARATION
|
static NamespaceBinding[] |
EMPTY_ARRAY
|
static NamespaceBinding |
XML
|
| Constructor Summary | |
|---|---|
NamespaceBinding(String prefix,
String uri)
Create a binding of a prefix to a URI |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final NamespaceBinding XML
public static final NamespaceBinding DEFAULT_UNDECLARATION
public static final NamespaceBinding[] EMPTY_ARRAY
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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)
equals in class Objectobj - the comparand
public int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||