|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.QNameNode
public class QNameNode
Class representing an XML Text node with the format [prefix:]localName
.
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
QNameNode(org.w3c.dom.Document owner, java.lang.String qname) Creates a new QNameNode in the given document from the specified qualified name string. |
|
QNameNode(org.w3c.dom.Document owner, java.lang.String prefix, java.lang.String localName) Creates a new QNameNode in the given document from the specified prefix and local name. |
|
QNameNode(org.w3c.dom.Text node) Creates a new QNameNode to wrap the given org.w3c.dom.Text node, whose value must be a valid XML qualified name. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj) Compares this QNameNode to the given object. |
java.lang.String |
getLocalPart() Returns the local name for this QNameNode 's value. |
java.lang.String |
getPrefixPart() Returns the namespace prefix for this QNameNode 's value. |
int |
hashCode() Returns a hashcode for this QNameNode . |
java.lang.String |
resolvePrefix() Returns the namespace URI that is in scope for this QNameNode 's prefix part. |
void |
setLocalPart(java.lang.String localName) Sets the local name for this QNameNode 's value. |
void |
setPrefixPart(java.lang.String prefix) Sets the namespace prefix for this QNameNode 's value. |
QName |
toQName() Creates a new QName instance with this QNameNode 's local name, namespace URI and prefix. |
Methods inherited from class oracle.security.xmlsec.util.XMLNode |
---|
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QNameNode(org.w3c.dom.Text node) throws org.w3c.dom.DOMException
QNameNode
to wrap the given org.w3c.dom.Text
node, whose value must be a valid XML qualified name.
node
- A text node containing an XML qualified name.org.w3c.dom.DOMException
public QNameNode(org.w3c.dom.Document owner, java.lang.String prefix, java.lang.String localName) throws org.w3c.dom.DOMException
QNameNode
in the given document from the specified prefix and local name.
owner
- The owner document for the new QNameNode
.prefix
- The namespace prefix.localName
- The local part of the qualified name.org.w3c.dom.DOMException
public QNameNode(org.w3c.dom.Document owner, java.lang.String qname) throws org.w3c.dom.DOMException
QNameNode
in the given document from the specified qualified name string.
owner
- The owner document for the new QNameNode
.qname
- A qualified name string of the form [prefix:]localName
.org.w3c.dom.DOMException
Method Detail |
---|
public void setPrefixPart(java.lang.String prefix) throws org.w3c.dom.DOMException
QNameNode
's value.prefix
- The namespace prefix for this QNameNode
's value. To remove this QNameNode
's prefix, set it to ""
or null
.org.w3c.dom.DOMException
public java.lang.String getPrefixPart()
QNameNode
's value.QNameNode
's value (""
if none is present).public void setLocalPart(java.lang.String localName) throws org.w3c.dom.DOMException
QNameNode
's value.localName
- The local name for this QNameNode
's value (may not be ""
or null
).org.w3c.dom.DOMException
public java.lang.String getLocalPart() throws org.w3c.dom.DOMException
QNameNode
's value.QNameNode
's value.org.w3c.dom.DOMException
public java.lang.String resolvePrefix()
QNameNode
's prefix part.null
if none could be resolved. Returns the default namespace in scope if this QNameNode
has no prefix part.public QName toQName()
QName
instance with this QNameNode
's local name, namespace URI and prefix.QName
instance.public boolean equals(java.lang.Object obj)
QNameNode
to the given object.equals
in class java.lang.Object
obj
- The object to compare to this QNameNode
.true
if the given object is a QNameNode
that has the same local name and the same namespace URI as this QNameNode
; otherwise returns false
. Namespace prefixes are resolved for the comparison.public int hashCode()
QNameNode
.hashCode
in class java.lang.Object
|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |