public class Namespace extends Object
Constructor and Description |
---|
Namespace()
Constructor.
|
Namespace(String uri,
String prefix)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
alwaysDeclare()
Deprecated.
use appropriate methods on the XMLObject's
NamespaceManager . |
protected void |
constructStringRepresentation()
Constructs an XML namespace declaration string representing this namespace.
|
boolean |
equals(Object obj)
Checks if the given object is the same as this Namespace.
|
String |
getNamespacePrefix()
Gets the prefix of the namespace.
|
String |
getNamespaceURI()
Gets the URI of the namespace.
|
int |
hashCode() |
void |
setAlwaysDeclare(boolean shouldAlwaysDeclare)
Deprecated.
use appropriate methods on the XMLObject's
NamespaceManager . |
void |
setNamespacePrefix(String newPrefix)
Sets the prefix of the namespace.
|
void |
setNamespaceURI(String newURI)
Sets the URI of the namespace.
|
String |
toString() |
public String getNamespacePrefix()
public void setNamespacePrefix(String newPrefix)
newPrefix
- the prefix of the namespacepublic String getNamespaceURI()
public void setNamespaceURI(String newURI)
newURI
- the URI of the namespacepublic boolean alwaysDeclare()
NamespaceManager
.public void setAlwaysDeclare(boolean shouldAlwaysDeclare)
NamespaceManager
.shouldAlwaysDeclare
- true if this namespace should always be declared, false if notpublic boolean equals(Object obj)
Namespace
protected void constructStringRepresentation()
Copyright © 2018 JBoss by Red Hat. All rights reserved.