public class XBXmlNamespace
extends java.lang.Object
Constructor and Description |
---|
XBXmlNamespace(java.lang.String prefix,
java.lang.String uri)
The constructor creates a mapping between a namespace URI and
a prefix.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrefix()
This method is used to get the prefix value.
|
java.lang.String |
getURI()
This method is used to get the URI value.
|
boolean |
isPrefixEqual(java.lang.String prefix)
This method is used to test the given prefix for a match.
|
boolean |
isURIEqual(java.lang.String uri)
This method is used to test the given URI for a match.
|
public XBXmlNamespace(java.lang.String prefix, java.lang.String uri)
prefix
- XML namespace prefix. If null is passed, then "" is used.uri
- XML namespace URI. If null is passed, then "" is used.public java.lang.String getPrefix()
public java.lang.String getURI()
public boolean isPrefixEqual(java.lang.String prefix)
public boolean isURIEqual(java.lang.String uri)