com.ibm.di.entry
Class Property
java.lang.Object
com.ibm.di.entry.NodeImpl
com.ibm.di.entry.Property
All Implemented Interfaces: java.io.Serializable, org.w3c.dom.Attr, org.w3c.dom.Node
public class Property extends NodeImpl implements org.w3c.dom.Attr
This class represents the attribute in terms of XML concepts.
Since:
TDI 7.0
See Also: Serialized Form
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Constructor Summary
Property (java.lang.String qualifiedName,
java.lang.String namespaceURI)
Property (java.lang.String name,
java.lang.String namespaceURI,
java.lang.String value)
Methods inherited from class com.ibm.di.entry.NodeImpl
getAttributes , getBaseURI , getChildNodes , getFeature , getFirstChild , getLastChild , getNextSibling , getNodeName , getParentNode , getPreviousSibling , getTextContent , getUserData , hasAttributes , hasChildNodes , insertBefore , isDefaultNamespace , isSameNode , isSupported , lookupNamespaceURI , lookupPrefix , normalize , removeChild , replaceChild , setTextContent , setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.w3c.dom.Node
getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeName, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setTextContent, setUserData
DEFAULT_VALUE
public static final java.lang.String DEFAULT_VALUE
See Also: Constant Field Values
Property
public Property (java.lang.String name,
java.lang.String namespaceURI,
java.lang.String value)
Property
public Property (java.lang.String qualifiedName,
java.lang.String namespaceURI)
getName
public java.lang.String getName ()
Specified by: getName
in interface org.w3c.dom.Attr
Returns: the fully qualified name of the Property
getOwnerElement
public Attribute getOwnerElement ()
Specified by: getOwnerElement
in interface org.w3c.dom.Attr
Returns: the owner element
getSchemaTypeInfo
public org.w3c.dom.TypeInfo getSchemaTypeInfo ()
Specified by: getSchemaTypeInfo
in interface org.w3c.dom.Attr
Returns: null
getSpecified
public boolean getSpecified ()
Specified by: getSpecified
in interface org.w3c.dom.Attr
Returns: true
getValue
public java.lang.String getValue ()
Specified by: getValue
in interface org.w3c.dom.Attr
Returns: the value of the property
isId
public boolean isId ()
Specified by: isId
in interface org.w3c.dom.Attr
Returns: false
setValue
public void setValue (java.lang.String value)
throws DOMException
Sets the value of the Property.
Specified by: setValue
in interface org.w3c.dom.Attr
Throws:
DOMException
appendChild
public org.w3c.dom.Node appendChild (org.w3c.dom.Node arg0)
throws DOMException
Not applicable for properties. Does nothing.
Specified by: appendChild
in interface org.w3c.dom.Node
Overrides: appendChild
in class NodeImpl
Returns: null;
Throws:
DOMException
cloneNode
public org.w3c.dom.Node cloneNode (boolean arg0)
Specified by: cloneNode
in interface org.w3c.dom.Node
Returns: a new Property object that is a copy of this Property but does
not belong to any Entry or Attribute.
compareDocumentPosition
public short compareDocumentPosition (org.w3c.dom.Node arg0)
throws DOMException
Not applicable for properties Does nothing.
Specified by: compareDocumentPosition
in interface org.w3c.dom.Node
Overrides: compareDocumentPosition
in class NodeImpl
Returns: 0;
Throws:
DOMException
- - never
getLocalName
public java.lang.String getLocalName ()
Specified by: getLocalName
in interface org.w3c.dom.Node
Returns: the local name of the Property.
getNodeType
public short getNodeType ()
Specified by: getNodeType
in interface org.w3c.dom.Node
Returns: Node.ATTRIBUTE_NODE
getNodeValue
public java.lang.String getNodeValue ()
throws DOMException
Specified by: getNodeValue
in interface org.w3c.dom.Node
Returns: the value of this Property
Throws:
DOMException
isEqualNode
public boolean isEqualNode (org.w3c.dom.Node other)
Specified by: isEqualNode
in interface org.w3c.dom.Node
Overrides: isEqualNode
in class NodeImpl
Returns: true if the other node, passed as parameter, is an object of type
Property, has the same qualified name, same namespace URI and the
same value, otherwise returns false.
setNodeValue
public void setNodeValue (java.lang.String aValue)
throws DOMException
same as setValue(String)
Specified by: setNodeValue
in interface org.w3c.dom.Node
Throws:
DOMException
setPrefix
public void setPrefix (java.lang.String prefix)
throws DOMException
This method sets the given prefix to the Property. If the prefix is
"xmlns" then it is considered that the Property defines a prefix to
namespace in terms of XML concepts, thus the namespace is set to be
"http://www.w3.org/2000/xmlns/". The same namespace is automatically set
if the prefix is either null or an empty string and the name of the
Property is "xmlns".
Specified by: setPrefix
in interface org.w3c.dom.Node
Parameters: prefix
- - the prefix that should be set to this Property
Throws:
DOMException
internalNSLookup
protected java.lang.String internalNSLookup (java.lang.String prefix)
Overrides: internalNSLookup
in class NodeImpl
internalLookupPrefix
protected java.lang.String internalLookupPrefix (java.lang.String namespaceURI)
Overrides: internalLookupPrefix
in class NodeImpl
toString
public java.lang.String toString ()
Overrides: toString
in class java.lang.Object
Returns: the value of this Property
getOwnerDocument
public org.w3c.dom.Document getOwnerDocument ()
Specified by: getOwnerDocument
in interface org.w3c.dom.Node
Overrides: getOwnerDocument
in class NodeImpl
getNamespaceURI
public java.lang.String getNamespaceURI ()
Specified by: getNamespaceURI
in interface org.w3c.dom.Node
getPrefix
public java.lang.String getPrefix ()
Specified by: getPrefix
in interface org.w3c.dom.Node