public class UserDataAttribute
extends org.dom4j.tree.DefaultAttribute
UserDataAttribute
support the adornment of a user data object
on an Element or Attribute instance such that the methods
setData(Object)
will get and set the values of a user data object.
This can be useful for developers wishing to create XML trees and adorn the
trees with user defined objects.
构造器和说明 |
---|
UserDataAttribute(QName qname) |
UserDataAttribute(QName qname,
String text) |
限定符和类型 | 方法和说明 |
---|---|
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 Node.getText() . |
void |
setData(Object data)
Sets the data value of this attribute if this element supports data
binding or calls
Node.setText(String) if it doesn't. |
accept, asXML, createXPathResult, getName, getNamespace, getNamespacePrefix, getNamespaceURI, getNodeType, getPath, getQualifiedName, getText, getUniquePath, setNamespace, setText, toString, write
asXPathResult, clone, createPattern, createXPath, createXPathFilter, detach, getDocument, getDocumentFactory, getNodeTypeName, getPath, getStringValue, getUniquePath, hasContent, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, valueOf
asXPathResult, clone, createXPath, detach, getDocument, getNodeTypeName, getPath, getStringValue, getUniquePath, hasContent, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, valueOf
public UserDataAttribute(QName qname)
public Object getData()
Attribute
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 Node.getText()
.
public void setData(Object data)
Attribute
Sets the data value of this attribute if this element supports data
binding or calls Node.setText(String)
if it doesn't.
Copyright © 2005 MetaStuff Ltd. All Rights Reserved. Hosted by