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.StringDEFAULT_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.NodeappendChild(org.w3c.dom.Node arg0)Not applicable for properties.org.w3c.dom.NodecloneNode(boolean arg0)shortcompareDocumentPosition(org.w3c.dom.Node arg0)Not applicable for properties Does nothing.java.lang.StringgetLocalName()java.lang.StringgetName()java.lang.StringgetNamespaceURI()shortgetNodeType()java.lang.StringgetNodeValue()org.w3c.dom.DocumentgetOwnerDocument()AttributegetOwnerElement()java.lang.StringgetPrefix()org.w3c.dom.TypeInfogetSchemaTypeInfo()booleangetSpecified()java.lang.StringgetValue()protected java.lang.StringinternalLookupPrefix(java.lang.String namespaceURI)protected java.lang.StringinternalNSLookup(java.lang.String prefix)booleanisEqualNode(org.w3c.dom.Node other)booleanisId()voidsetNodeValue(java.lang.String aValue)same assetValue(String)voidsetPrefix(java.lang.String prefix)This method sets the given prefix to the Property.voidsetValue(java.lang.String value)Sets the value of the Property.java.lang.StringtoString()-
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:
getNamein interfaceorg.w3c.dom.Attr- Returns:
- the fully qualified name of the Property
-
getOwnerElement
public Attribute getOwnerElement()
- Specified by:
getOwnerElementin interfaceorg.w3c.dom.Attr- Returns:
- the owner element
-
getSchemaTypeInfo
public org.w3c.dom.TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfoin interfaceorg.w3c.dom.Attr- Returns:
- null
-
getSpecified
public boolean getSpecified()
- Specified by:
getSpecifiedin interfaceorg.w3c.dom.Attr- Returns:
- true
-
getValue
public java.lang.String getValue()
- Specified by:
getValuein interfaceorg.w3c.dom.Attr- Returns:
- the value of the property
-
isId
public boolean isId()
- Specified by:
isIdin interfaceorg.w3c.dom.Attr- Returns:
- false
-
setValue
public void setValue(java.lang.String value) throws DOMExceptionSets the value of the Property.- Specified by:
setValuein interfaceorg.w3c.dom.Attr- Throws:
DOMException
-
appendChild
public org.w3c.dom.Node appendChild(org.w3c.dom.Node arg0) throws DOMExceptionNot applicable for properties. Does nothing.- Specified by:
appendChildin interfaceorg.w3c.dom.Node- Overrides:
appendChildin classNodeImpl- Returns:
- null;
- Throws:
DOMException
-
cloneNode
public org.w3c.dom.Node cloneNode(boolean arg0)
- Specified by:
cloneNodein 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 DOMExceptionNot applicable for properties Does nothing.- Specified by:
compareDocumentPositionin interfaceorg.w3c.dom.Node- Overrides:
compareDocumentPositionin classNodeImpl- Returns:
- 0;
- Throws:
DOMException- - never
-
getLocalName
public java.lang.String getLocalName()
- Specified by:
getLocalNamein interfaceorg.w3c.dom.Node- Returns:
- the local name of the Property.
-
getNodeType
public short getNodeType()
- Specified by:
getNodeTypein interfaceorg.w3c.dom.Node- Returns:
- Node.ATTRIBUTE_NODE
-
getNodeValue
public java.lang.String getNodeValue() throws DOMException- Specified by:
getNodeValuein interfaceorg.w3c.dom.Node- Returns:
- the value of this Property
- Throws:
DOMException
-
isEqualNode
public boolean isEqualNode(org.w3c.dom.Node other)
- Specified by:
isEqualNodein interfaceorg.w3c.dom.Node- Overrides:
isEqualNodein 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 DOMExceptionsame assetValue(String)- Specified by:
setNodeValuein interfaceorg.w3c.dom.Node- Throws:
DOMException
-
setPrefix
public void setPrefix(java.lang.String prefix) throws DOMExceptionThis 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:
setPrefixin 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:
internalNSLookupin classNodeImpl
-
internalLookupPrefix
protected java.lang.String internalLookupPrefix(java.lang.String namespaceURI)
- Overrides:
internalLookupPrefixin classNodeImpl
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- the value of this Property
-
getOwnerDocument
public org.w3c.dom.Document getOwnerDocument()
- Specified by:
getOwnerDocumentin interfaceorg.w3c.dom.Node- Overrides:
getOwnerDocumentin classNodeImpl
-
getNamespaceURI
public java.lang.String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceorg.w3c.dom.Node
-
getPrefix
public java.lang.String getPrefix()
- Specified by:
getPrefixin interfaceorg.w3c.dom.Node
-
-