|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractAttribute
org.dom4j.bean.BeanAttribute
BeanAttribute represents a mutable XML attribute which
is backed by a property of the JavaBean of its parent element.
| Field Summary |
| Fields inherited from class org.dom4j.tree.AbstractNode |
NODE_TYPE_NAMES |
| Fields inherited from interface org.dom4j.Node |
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE |
| Constructor Summary | |
BeanAttribute(BeanAttributeList beanList,
int index)
|
|
| Method Summary | |
java.lang.Object |
getData()
Accesses the data of this attribute which may implement data typing bindings such as XML Schema or Java Bean bindings or will return the same value as AbstractAttribute.getText() |
Element |
getParent()
getParent returns the parent Element
if this node supports the parent relationship or null if it is
the root element or does not support the parent relationship. |
QName |
getQName()
Returns the QName of this attribute which represents
the local name, the qualified name and the Namespace. |
java.lang.String |
getValue()
Returns the value of the attribute. |
void |
setData(java.lang.Object data)
Sets the data value of this attribute if this element supports data binding or calls AbstractAttribute.setText(java.lang.String) if it doesn't |
void |
setValue(java.lang.String data)
Sets the value of this attribute or this method will throw an UnsupportedOperationException if it is
read-only. |
| Methods inherited from class org.dom4j.tree.AbstractAttribute |
accept, asXML, createXPathResult, getName, getNamespace, getNamespacePrefix, getNamespaceURI, getNodeType, getPath, getQualifiedName, getText, getUniquePath, setNamespace, setText, toString, write |
| Methods inherited from class org.dom4j.tree.AbstractNode |
asXPathResult, clone, createPattern, createXPath, createXPathFilter, detach, getDocument, getDocumentFactory, getNodeTypeName, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, supportsParent, valueOf |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.dom4j.Node |
asXPathResult, clone, createXPath, detach, getDocument, getNodeTypeName, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, supportsParent, valueOf |
| Constructor Detail |
public BeanAttribute(BeanAttributeList beanList,
int index)
| Method Detail |
public QName getQName()
AttributeReturns the QName of this attribute which represents
the local name, the qualified name and the Namespace.
QName associated with this attributepublic Element getParent()
NodegetParent returns the parent Element
if this node supports the parent relationship or null if it is
the root element or does not support the parent relationship.
This method is an optional feature and may not be supported
for all Node implementations.
getParent in interface NodegetParent in class AbstractNodepublic java.lang.String getValue()
AttributeReturns the value of the attribute. This method
returns the same value as the Node.getText() method.
public void setValue(java.lang.String data)
AttributeSets the value of this attribute or this method will
throw an UnsupportedOperationException if it is
read-only.
setValue in interface AttributesetValue in class AbstractAttributepublic java.lang.Object getData()
AttributeNode.getText()
getData in interface AttributegetData in class AbstractAttributepublic void setData(java.lang.Object data)
AttributeNode.setText(java.lang.String) if it doesn't
setData in interface AttributesetData in class AbstractAttribute
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||