public class Namespace extends Object
Namespace
Modifier and Type | Field and Description |
---|---|
static Namespace |
EMPTY_NAMESPACE |
static Namespace |
XML_NAMESPACE |
static Namespace |
XMLNS_NAMESPACE |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Namespace |
getNamespace(String uri) |
static Namespace |
getNamespace(String prefix,
String uri) |
String |
getPrefix() |
String |
getURI() |
int |
hashCode() |
boolean |
isSame(String namespaceURI)
Returns
true if the a Namespace built from the
specified namespaceURI is equal to this namespace object. |
public static final Namespace EMPTY_NAMESPACE
public static final Namespace XML_NAMESPACE
public static final Namespace XMLNS_NAMESPACE
public String getPrefix()
public String getURI()
public boolean isSame(String namespaceURI)
true
if the a Namespace
built from the
specified namespaceURI
is equal to this namespace object.namespaceURI
- A namespace URI to be compared to this namespace instance.Namespace
built from the
specified namespaceURI
is equal to this namespace object;
false otherwise.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.