|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.entry.NodeImpl
com.ibm.di.entry.CharacterDataImpl
com.ibm.di.entry.AttributeValue
public class AttributeValue
The AttributeValue class is used in conjunction with the Attribute object to store information about an attribute value. The class has a value and an operation properties associated with the value.
| Field Summary | |
|---|---|
static int |
AV_ADD
Used when a value has been added |
static int |
AV_DELETE
Used when a value has been deleted |
static int |
AV_REPLACE
Used when a value has been modified. |
static int |
AV_UNCHANGED
Used when a value is not changed |
static int |
AV_UNDEFINED
Used when a value does not have a defined operation code |
| Fields inherited from class com.ibm.di.entry.NodeImpl |
|---|
parent |
| 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 | |
|---|---|
AttributeValue(java.lang.Object value)
Creates an AttributeValue giving a value to be wrapped. |
|
AttributeValue(java.lang.Object value,
int oper)
|
|
AttributeValue(java.lang.Object value,
int oper,
boolean isText)
|
|
| Method Summary | |
|---|---|
AttributeValue |
clone()
|
org.w3c.dom.Node |
cloneNode(boolean deep)
|
java.lang.String |
getData()
|
java.lang.String |
getLocalName()
|
java.lang.String |
getNamespaceURI()
|
java.lang.String |
getNodeName()
|
short |
getNodeType()
|
int |
getOper()
|
java.lang.String |
getOperation()
Return the operation code. |
java.lang.String |
getPrefix()
|
java.lang.Object |
getValue()
|
void |
setData(java.lang.String data)
|
void |
setNodeTypeText(boolean value)
Changes the type of the node. |
void |
setOper(int oper)
|
void |
setOperation(java.lang.String oper)
|
void |
setPrefix(java.lang.String prefix)
|
void |
setValue(java.lang.Object value)
|
static int |
stringToOper(java.lang.String oper)
|
java.lang.String |
toDeltaString()
|
java.lang.String |
toString()
|
| Methods inherited from class com.ibm.di.entry.CharacterDataImpl |
|---|
appendData, deleteData, getLength, getNodeValue, getWholeText, insertData, isElementContentWhitespace, replaceData, replaceWholeText, setNodeValue, splitText, substringData |
| Methods inherited from class com.ibm.di.entry.NodeImpl |
|---|
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, internalLookupPrefix, internalNSLookup, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setTextContent, setUserData |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Text |
|---|
getWholeText, isElementContentWhitespace, replaceWholeText, splitText |
| Methods inherited from interface org.w3c.dom.CharacterData |
|---|
appendData, deleteData, getLength, insertData, replaceData, substringData |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setTextContent, setUserData |
| Field Detail |
|---|
public static final int AV_UNDEFINED
public static final int AV_UNCHANGED
public static final int AV_ADD
public static final int AV_DELETE
public static final int AV_REPLACE
| Constructor Detail |
|---|
public AttributeValue(java.lang.Object value)
value - the value to be wrapped as an AttributeValue.
public AttributeValue(java.lang.Object value,
int oper)
public AttributeValue(java.lang.Object value,
int oper,
boolean isText)
| Method Detail |
|---|
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
public int getOper()
public java.lang.String getOperation()
public void setOper(int oper)
public void setOperation(java.lang.String oper)
public static int stringToOper(java.lang.String oper)
public java.lang.String toString()
toString in class CharacterDataImplpublic java.lang.String toDeltaString()
public void setNodeTypeText(boolean value)
value - - if this is true, subsequent calls to getNodeType()
will return Node.TEXT_NODE, otherwise will return
Node.CDATA_SECTION_NODE. *public AttributeValue clone()
clone in class java.lang.Object
public java.lang.String getData()
throws org.w3c.dom.DOMException
getData in interface org.w3c.dom.CharacterDataorg.w3c.dom.DOMException
public void setData(java.lang.String data)
throws org.w3c.dom.DOMException
setData in interface org.w3c.dom.CharacterDataorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node cloneNode(boolean deep)
cloneNode in interface org.w3c.dom.Nodepublic java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.NodegetNodeName in class NodeImplpublic java.lang.String getLocalName()
getLocalName in interface org.w3c.dom.Nodepublic java.lang.String getNamespaceURI()
getNamespaceURI in interface org.w3c.dom.Nodepublic short getNodeType()
getNodeType in interface org.w3c.dom.Nodepublic java.lang.String getPrefix()
getPrefix in interface org.w3c.dom.Node
public void setPrefix(java.lang.String prefix)
throws org.w3c.dom.DOMException
setPrefix in interface org.w3c.dom.Nodeorg.w3c.dom.DOMException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||