public class Namespace extends Object
| コンストラクタと説明 |
|---|
Namespace()
Constructor.
|
Namespace(String uri,
String prefix)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
alwaysDeclare()
推奨されていません。
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)
推奨されていません。
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)
Namespaceprotected void constructStringRepresentation()
Copyright © 2012. All Rights Reserved.