程序包 | 说明 |
---|---|
org.dom4j |
Defines the XML Document Object Model in Java interfaces together
with some helper classes.
|
org.dom4j.datatype |
An implementation of the dom4j API which supports the
XML Schema Data Types specification.
|
org.dom4j.io |
Provides input and output via SAX and DOM together with writing dom4j
objects to streams as XML text.
|
org.dom4j.util |
A collection of utility classes for the dom4j API.
|
限定符和类型 | 方法和说明 |
---|---|
static QName |
DocumentHelper.createQName(String localName) |
QName |
DocumentFactory.createQName(String localName) |
static QName |
DocumentHelper.createQName(String localName,
Namespace namespace) |
QName |
DocumentFactory.createQName(String localName,
Namespace namespace) |
QName |
DocumentFactory.createQName(String qualifiedName,
String uri) |
QName |
DocumentFactory.createQName(String name,
String prefix,
String uri) |
static QName |
QName.get(String name) |
static QName |
QName.get(String name,
Namespace namespace) |
static QName |
QName.get(String localName,
Namespace namespace,
String qualifiedName) |
static QName |
QName.get(String qualifiedName,
String uri) |
static QName |
QName.get(String name,
String prefix,
String uri) |
QName |
Element.getQName()
Returns the
QName of this element which represents the
local name, the qualified name and the Namespace . |
QName |
Attribute.getQName()
Returns the
QName of this attribute which represents the
local name, the qualified name and the Namespace . |
QName |
Element.getQName(String qualifiedName)
Returns the
QName for the given qualified name, using the
namespace URI in scope for the given prefix of the qualified name or the
default namespace if the qualified name has no prefix. |
protected QName |
DocumentFactory.intern(QName qname)
DOCUMENT ME!
|
限定符和类型 | 方法和说明 |
---|---|
Element |
Element.addAttribute(QName qName,
String value)
Adds the attribute value of the given fully qualified name.
|
Element |
Branch.addElement(QName qname)
Adds a new
Element node with the given QName to
this branch and returns a reference to the new node. |
Attribute |
Element.attribute(QName qName)
DOCUMENT ME!
|
String |
Element.attributeValue(QName qName)
This returns the attribute value for the attribute with the given fully
qualified name or null if there is no such attribute or the empty string
if the attribute value is empty.
|
String |
Element.attributeValue(QName qName,
String defaultValue)
This returns the attribute value for the attribute with the given fully
qualified name or the default value if there is no such attribute value.
|
static Attribute |
DocumentHelper.createAttribute(Element owner,
QName qname,
String value) |
Attribute |
DocumentFactory.createAttribute(Element owner,
QName qname,
String value) |
Element |
Element.createCopy(QName qName)
Creates a deep copy of this element with the given fully qualified name.
|
static Element |
DocumentHelper.createElement(QName qname) |
Element |
DocumentFactory.createElement(QName qname) |
Element |
Element.element(QName qName)
Returns the first element for the given fully qualified name.
|
Iterator |
Element.elementIterator(QName qName)
Returns an iterator over the elements contained in this element which
match the given fully qualified name.
|
List |
Element.elements(QName qName)
Returns the elements contained in this element with the given fully
qualified name.
|
String |
Element.elementText(QName qname) |
String |
Element.elementTextTrim(QName qname) |
protected QName |
DocumentFactory.intern(QName qname)
DOCUMENT ME!
|
void |
Element.setAttributeValue(QName qName,
String value)
已过时。
As of version 0.5. Please use
Element.addAttribute(QName,String) instead. WILL BE REMOVED IN
dom4j-1.6 !! |
void |
Element.setQName(QName qname)
Sets the
QName of this element which represents the local
name, the qualified name and the Namespace . |
限定符和类型 | 方法和说明 |
---|---|
QName |
DatatypeElementFactory.getQName()
DOCUMENT ME!
|
QName |
DatatypeAttribute.getQName() |
限定符和类型 | 方法和说明 |
---|---|
Attribute |
DatatypeElementFactory.createAttribute(Element owner,
QName qname,
String value) |
Attribute |
DatatypeDocumentFactory.createAttribute(Element owner,
QName qname,
String value) |
Element |
DatatypeElementFactory.createElement(QName qname) |
com.sun.msv.datatype.xsd.XSDatatype |
DatatypeElementFactory.getAttributeXSDatatype(QName attributeQName)
DOCUMENT ME!
|
com.sun.msv.datatype.xsd.XSDatatype |
DatatypeElementFactory.getChildElementXSDatatype(QName qname)
DOCUMENT ME!
|
DatatypeElementFactory |
DatatypeDocumentFactory.getElementFactory(QName elementQName)
Registers the given
DatatypeElementFactory for the given
<element> schema element |
void |
DatatypeElementFactory.setAttributeXSDatatype(QName attributeQName,
com.sun.msv.datatype.xsd.XSDatatype type)
Registers the given
XSDatatype for the given
<attribute> QNames |
void |
DatatypeElementFactory.setChildElementXSDatatype(QName qname,
com.sun.msv.datatype.xsd.XSDatatype dataType) |
构造器和说明 |
---|
DatatypeAttribute(QName qname,
com.sun.msv.datatype.xsd.XSDatatype datatype) |
DatatypeAttribute(QName qname,
com.sun.msv.datatype.xsd.XSDatatype datatype,
String text) |
DatatypeElement(QName qname,
int attributeCount,
com.sun.msv.datatype.xsd.XSDatatype type) |
DatatypeElement(QName qname,
com.sun.msv.datatype.xsd.XSDatatype datatype) |
DatatypeElementFactory(QName elementQName) |
限定符和类型 | 方法和说明 |
---|---|
QName |
STAXEventReader.createQName(QName qname)
Constructs a new DOM4J QName from the provided JAXP QName.
|
限定符和类型 | 方法和说明 |
---|---|
QName |
STAXEventWriter.createQName(QName qname)
|
限定符和类型 | 字段和说明 |
---|---|
protected static QName |
XMLErrorHandler.ERROR_QNAME |
protected static QName |
XMLErrorHandler.FATALERROR_QNAME |
protected static QName |
XMLErrorHandler.WARNING_QNAME |
限定符和类型 | 方法和说明 |
---|---|
QName |
ProxyDocumentFactory.createQName(String localName) |
QName |
ProxyDocumentFactory.createQName(String localName,
Namespace namespace) |
QName |
ProxyDocumentFactory.createQName(String qualifiedName,
String uri) |
QName |
ProxyDocumentFactory.createQName(String name,
String prefix,
String uri) |
QName |
XMLErrorHandler.getErrorQName() |
QName |
XMLErrorHandler.getFatalErrorQName() |
QName |
XMLErrorHandler.getWarningQName() |
限定符和类型 | 方法和说明 |
---|---|
Attribute |
IndexedElement.attribute(QName qName) |
static boolean |
AttributeHelper.booleanValue(Element element,
QName attributeQName) |
int |
NodeComparator.compare(QName n1,
QName n2) |
Attribute |
ProxyDocumentFactory.createAttribute(Element owner,
QName qname,
String value) |
Attribute |
UserDataDocumentFactory.createAttribute(Element owner,
QName qname,
String value) |
Element |
ProxyDocumentFactory.createElement(QName qname) |
protected Element |
UserDataElement.createElement(QName qName) |
Element |
IndexedDocumentFactory.createElement(QName qname) |
Element |
UserDataDocumentFactory.createElement(QName qname) |
Element |
NonLazyDocumentFactory.createElement(QName qname) |
Element |
IndexedDocumentFactory.createElement(QName qname,
int attributeCount) |
Element |
IndexedElement.element(QName qName) |
List |
IndexedElement.elements(QName qName) |
void |
XMLErrorHandler.setErrorQName(QName errorQName) |
void |
XMLErrorHandler.setFatalErrorQName(QName fatalErrorQName) |
void |
XMLErrorHandler.setWarningQName(QName warningQName) |
构造器和说明 |
---|
IndexedElement(QName qname) |
IndexedElement(QName qname,
int attributeCount) |
NonLazyElement(QName qname) |
NonLazyElement(QName qname,
int attributeCount) |
UserDataAttribute(QName qname) |
UserDataAttribute(QName qname,
String text) |
UserDataElement(QName qname) |
Copyright © 2005 MetaStuff Ltd. All Rights Reserved. Hosted by