Package 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:
- 7.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_VALUE
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Node
appendChild(org.w3c.dom.Node arg0)
Not applicable for properties.org.w3c.dom.Node
cloneNode(boolean arg0)
short
compareDocumentPosition(org.w3c.dom.Node arg0)
Not applicable for properties Does nothing.java.lang.String
getLocalName()
java.lang.String
getName()
java.lang.String
getNamespaceURI()
short
getNodeType()
java.lang.String
getNodeValue()
org.w3c.dom.Document
getOwnerDocument()
Attribute
getOwnerElement()
java.lang.String
getPrefix()
org.w3c.dom.TypeInfo
getSchemaTypeInfo()
boolean
getSpecified()
java.lang.String
getValue()
protected java.lang.String
internalLookupPrefix(java.lang.String namespaceURI)
protected java.lang.String
internalNSLookup(java.lang.String prefix)
boolean
isEqualNode(org.w3c.dom.Node other)
boolean
isId()
void
setNodeValue(java.lang.String aValue)
same assetValue(String)
void
setPrefix(java.lang.String prefix)
This method sets the given prefix to the Property.void
setValue(java.lang.String value)
Sets the value of the Property.java.lang.String
toString()
-
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
-
-
-
-
Field Detail
-
DEFAULT_VALUE
public static final java.lang.String DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.w3c.dom.Attr
- Returns:
- the fully qualified name of the Property
-
getOwnerElement
public Attribute getOwnerElement()
- Specified by:
getOwnerElement
in interfaceorg.w3c.dom.Attr
- Returns:
- the owner element
-
getSchemaTypeInfo
public org.w3c.dom.TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfo
in interfaceorg.w3c.dom.Attr
- Returns:
- null
-
getSpecified
public boolean getSpecified()
- Specified by:
getSpecified
in interfaceorg.w3c.dom.Attr
- Returns:
- true
-
getValue
public java.lang.String getValue()
- Specified by:
getValue
in interfaceorg.w3c.dom.Attr
- Returns:
- the value of the property
-
isId
public boolean isId()
- Specified by:
isId
in interfaceorg.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 interfaceorg.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 interfaceorg.w3c.dom.Node
- Overrides:
appendChild
in classNodeImpl
- Returns:
- null;
- Throws:
DOMException
-
cloneNode
public org.w3c.dom.Node cloneNode(boolean arg0)
- Specified by:
cloneNode
in interfaceorg.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 interfaceorg.w3c.dom.Node
- Overrides:
compareDocumentPosition
in classNodeImpl
- Returns:
- 0;
- Throws:
DOMException
- - never
-
getLocalName
public java.lang.String getLocalName()
- Specified by:
getLocalName
in interfaceorg.w3c.dom.Node
- Returns:
- the local name of the Property.
-
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interfaceorg.w3c.dom.Node
- Returns:
- Node.ATTRIBUTE_NODE
-
getNodeValue
public java.lang.String getNodeValue() throws DOMException
- Specified by:
getNodeValue
in interfaceorg.w3c.dom.Node
- Returns:
- the value of this Property
- Throws:
DOMException
-
isEqualNode
public boolean isEqualNode(org.w3c.dom.Node other)
- Specified by:
isEqualNode
in interfaceorg.w3c.dom.Node
- Overrides:
isEqualNode
in classNodeImpl
- 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 assetValue(String)
- Specified by:
setNodeValue
in interfaceorg.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 interfaceorg.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 classNodeImpl
-
internalLookupPrefix
protected java.lang.String internalLookupPrefix(java.lang.String namespaceURI)
- Overrides:
internalLookupPrefix
in classNodeImpl
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- the value of this Property
-
getOwnerDocument
public org.w3c.dom.Document getOwnerDocument()
- Specified by:
getOwnerDocument
in interfaceorg.w3c.dom.Node
- Overrides:
getOwnerDocument
in classNodeImpl
-
getNamespaceURI
public java.lang.String getNamespaceURI()
- Specified by:
getNamespaceURI
in interfaceorg.w3c.dom.Node
-
getPrefix
public java.lang.String getPrefix()
- Specified by:
getPrefix
in interfaceorg.w3c.dom.Node
-
-