Package com.globalmentor.xml
Class XMLNamedObject
- java.lang.Object
-
- com.globalmentor.xml.XMLNamedObject
-
public class XMLNamedObject extends java.lang.Object
Deprecated.The base class for XML objects that are named—identified by qname and/or namespace and local name.This class can be used independently of the rest of the W3C DOM implementations in this package.
- Author:
- Garret Wilson
-
-
Constructor Summary
Constructors Constructor Description XMLNamedObject(java.lang.String namespaceURI, java.lang.String qname)
Deprecated.Constructor specifying the namespace and qname of the object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getLocalName()
Deprecated.java.lang.String
getNamespaceURI()
Deprecated.java.lang.String
getPrefix()
Deprecated.java.lang.String
getQName()
Deprecated.void
setLocalName(java.lang.String localName)
Deprecated.Sets the node's local name.protected void
setName(java.lang.String newPrefix, java.lang.String newLocalName)
Deprecated.Sets the prefix and local name of this object, updating the qualified name as well.void
setNamespaceURI(java.lang.String newNamespaceURI)
Deprecated.Sets the namespace URI.void
setPrefix(java.lang.String prefix)
Deprecated.Sets the namespace prefix of this node.void
setQName(java.lang.String qname)
Deprecated.Sets the qualified name of the object, updating the prefix and local name as well.
-
-
-
Constructor Detail
-
XMLNamedObject
public XMLNamedObject(java.lang.String namespaceURI, java.lang.String qname)
Deprecated.Constructor specifying the namespace and qname of the object.- Parameters:
namespaceURI
- The URI of the namespace, ornull
if there is no namespace.qname
- The qualified name of the object.
-
-
Method Detail
-
getNamespaceURI
public java.lang.String getNamespaceURI()
Deprecated.- Returns:
- The namespace URI, or
null
there is no namespace.
-
setNamespaceURI
public void setNamespaceURI(java.lang.String newNamespaceURI)
Deprecated.Sets the namespace URI.- Parameters:
newNamespaceURI
- The new namespace URI, ornull
if there should be no namespace.
-
getPrefix
public java.lang.String getPrefix()
Deprecated.- Returns:
- The namespace prefix, or
null
if there is no prefix.
-
setPrefix
public void setPrefix(java.lang.String prefix)
Deprecated.Sets the namespace prefix of this node. The prefix is actually set insetName()
.Note that setting this attribute changes the qualified name.
- Parameters:
prefix
- The namespace prefix of the node, ornull
for no prefix.- See Also:
setName(java.lang.String, java.lang.String)
-
getLocalName
public java.lang.String getLocalName()
Deprecated.- Returns:
- The local part of the qualified name of this node.
-
setLocalName
public void setLocalName(java.lang.String localName)
Deprecated.Sets the node's local name.- Parameters:
localName
- The local part of the qualified name of this node
-
getQName
public java.lang.String getQName()
Deprecated.- Returns:
- The qualified name of the object.
- See Also:
DefaultNamed.getName()
-
setQName
public void setQName(java.lang.String qname)
Deprecated.Sets the qualified name of the object, updating the prefix and local name as well.- Parameters:
qname
- The new qualified name of the object.
-
setName
protected void setName(java.lang.String newPrefix, java.lang.String newLocalName)
Deprecated.Sets the prefix and local name of this object, updating the qualified name as well.- Parameters:
newPrefix
- The namespace prefix of the node, ornull
for no prefix.newLocalName
- The node's local name.- See Also:
setName(java.lang.String, java.lang.String)
-
-