com.ibm.di.entry
Class Property
java.lang.Object
com.ibm.di.entry.NodeImpl
com.ibm.di.entry.Property
- All Implemented Interfaces:
- Serializable, Attr, Node
public class Property
- extends NodeImpl
- implements Attr
This class represents the attribute in terms of XML concepts.
- Since:
- 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 |
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 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 String DEFAULT_VALUE
- See Also:
- Constant Field Values
Property
public Property(String name,
String namespaceURI,
String value)
Property
public Property(String qualifiedName,
String namespaceURI)
getName
public String getName()
- Specified by:
getName
in interface Attr
- Returns:
- the fully qualified name of the Property
getOwnerElement
public Attribute getOwnerElement()
- Specified by:
getOwnerElement
in interface Attr
- Returns:
- the owner element
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfo
in interface Attr
- Returns:
- null
getSpecified
public boolean getSpecified()
- Specified by:
getSpecified
in interface Attr
- Returns:
- true
getValue
public String getValue()
- Specified by:
getValue
in interface Attr
- Returns:
- the value of the property
isId
public boolean isId()
- Specified by:
isId
in interface Attr
- Returns:
- false
setValue
public void setValue(String value)
throws DOMException
- Sets the value of the Property.
- Specified by:
setValue
in interface Attr
- Throws:
DOMException
appendChild
public Node appendChild(Node arg0)
throws DOMException
- Not applicable for properties. Does nothing.
- Specified by:
appendChild
in interface Node
- Overrides:
appendChild
in class NodeImpl
- Returns:
- null;
- Throws:
DOMException
cloneNode
public Node cloneNode(boolean arg0)
- Specified by:
cloneNode
in interface 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(Node arg0)
throws DOMException
- Not applicable for properties Does nothing.
- Specified by:
compareDocumentPosition
in interface Node
- Overrides:
compareDocumentPosition
in class NodeImpl
- Returns:
- 0;
- Throws:
DOMException
- - never
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interface Node
- Returns:
- the local name of the Property.
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interface Node
- Returns:
- Node.ATTRIBUTE_NODE
getNodeValue
public String getNodeValue()
throws DOMException
- Specified by:
getNodeValue
in interface Node
- Returns:
- the value of this Property
- Throws:
DOMException
isEqualNode
public boolean isEqualNode(Node other)
- Specified by:
isEqualNode
in interface 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(String aValue)
throws DOMException
- same as
setValue(String)
- Specified by:
setNodeValue
in interface Node
- Throws:
DOMException
setPrefix
public void setPrefix(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 Node
- Parameters:
prefix
- - the prefix that should be set to this Property
- Throws:
DOMException
internalNSLookup
protected String internalNSLookup(String prefix)
- Overrides:
internalNSLookup
in class NodeImpl
internalLookupPrefix
protected String internalLookupPrefix(String namespaceURI)
- Overrides:
internalLookupPrefix
in class NodeImpl
toString
public String toString()
- Overrides:
toString
in class Object
- Returns:
- the value of this Property
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
getOwnerDocument
in interface Node
- Overrides:
getOwnerDocument
in class NodeImpl
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI
in interface Node
getPrefix
public String getPrefix()
- Specified by:
getPrefix
in interface Node