Package | Description |
---|---|
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.rule | |
org.dom4j.tree |
Contains the default implementations of the dom4j Document Object Model
together with some helpful base classes for those wishing to
implement their own document object model.
|
org.dom4j.util |
A collection of utility classes for the dom4j API.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Attribute
Attribute defines an XML attribute. |
interface |
Branch
Branch interface defines the common behaviour for Nodes which
can contain child nodes (content) such as XML elements and documents. |
interface |
CDATA
CDATA defines an XML CDATA section. |
interface |
CharacterData
CharacterData is a marker interface for character based nodes
such as the CDATA ,Comment and
Text nodes. |
interface |
Comment
Comment defines the behavior of an XML comment. |
interface |
Document
Document defines an XML Document. |
interface |
DocumentType
DocumentType defines an XML DOCTYPE declaration. |
interface |
Element
Element interface defines an XML element. |
interface |
Entity
Entity defines an XML entity. |
interface |
ProcessingInstruction
ProcessingInstruction defines an XML processing instruction. |
interface |
Text
Text defines an XML Text node. |
Modifier and Type | Class and Description |
---|---|
class |
Namespace
Namespace is a Flyweight Namespace that can be shared amongst
nodes. |
Modifier and Type | Method and Description |
---|---|
Node |
Node.asXPathResult(Element parent)
asXPathResult returns a version of this node which is
capable of being an XPath result. |
protected Node |
Namespace.createXPathResult(Element parent) |
Node |
Node.detach()
Removes this node from its parent if there is one.
|
Node |
Element.getXPathResult(int index)
Returns a node at the given index suitable for an XPath result set.
|
Node |
Branch.node(int index)
Returns the
Node at the specified index position. |
Node |
XPath.selectSingleNode(java.lang.Object context)
|
Node |
Node.selectSingleNode(java.lang.String xpathExpression)
selectSingleNode evaluates an XPath expression and returns
the result as a single Node instance. |
Modifier and Type | Method and Description |
---|---|
void |
Branch.add(Node node)
Adds the given
Node or throws IllegalAddException
if the given node is not of a valid type. |
int |
Branch.indexOf(Node node)
Returns the index of the given node if it is a child node of this branch
or -1 if the given node is not a child node.
|
boolean |
XPath.matches(Node node)
matches returns true if the given node matches the XPath
expression. |
boolean |
NodeFilter.matches(Node node)
matches returns true if the given node matches the filter
condition. |
boolean |
Branch.remove(Node node)
Removes the given
Node if the node is an immediate child
of this branch. |
static java.util.List |
DocumentHelper.selectNodes(java.lang.String xpathFilterExpression,
Node node)
selectNodes performs the given XPath expression on the
List of Node instances appending all the results together
into a single list. |
Constructor and Description |
---|
IllegalAddException(Branch parent,
Node node,
java.lang.String reason) |
IllegalAddException(Element parent,
Node node,
java.lang.String reason) |
Modifier and Type | Class and Description |
---|---|
class |
DatatypeAttribute
DatatypeAttribute represents an Attribute which supports the
XML Schema Data Types
specification. |
class |
DatatypeElement
DatatypeElement represents an Element which supports the XML Schema Data Types
specification. |
Modifier and Type | Method and Description |
---|---|
protected void |
DatatypeElement.childAdded(Node node)
Override to force lazy recreation of data object
|
protected void |
DatatypeElement.childRemoved(Node node)
Override to force lazy recreation of data object
|
Modifier and Type | Method and Description |
---|---|
Node |
STAXEventReader.readNode(javax.xml.stream.XMLEventReader reader)
Reads a
Node from the event stream. |
Modifier and Type | Method and Description |
---|---|
void |
SAXWriter.write(Node node)
A polymorphic method to write any Node to this SAX stream
|
void |
XMLWriter.write(Node node)
Writes the given
Node . |
void |
STAXEventWriter.writeNode(Node n)
Writes a DOM4J
Node to the stream. |
protected void |
XMLWriter.writeNode(Node node) |
protected void |
XMLWriter.writeNodeText(Node node)
This method is used to write out Nodes that contain text and still allow
for xml:space to be handled properly.
|
Constructor and Description |
---|
DocumentSource(Node node)
Creates a JAXP
SAXSource for the given Node . |
Modifier and Type | Method and Description |
---|---|
void |
Mode.fireRule(Node node)
Runs the actions associated with the given node
|
Rule |
RuleSet.getMatchingRule(Node node)
Performs an XSLT processing model match for the rule which matches the
given Node the best.
|
Rule |
Mode.getMatchingRule(Node node)
Performs an XSLT processing model match for the rule which matches the
given Node the best.
|
Rule |
RuleManager.getMatchingRule(java.lang.String modeName,
Node node)
Performs an XSLT processing model match for the rule which matches the
given Node the best.
|
boolean |
Rule.matches(Node node)
DOCUMENT ME!
|
boolean |
Pattern.matches(Node node)
DOCUMENT ME!
|
void |
Action.run(Node node) |
void |
Stylesheet.run(Node node) |
void |
NullAction.run(Node node) |
void |
Stylesheet.run(Node node,
java.lang.String mode) |
Modifier and Type | Class and Description |
---|---|
class |
org.dom4j.tree.AbstractAttribute
AbstractNamespace is an abstract base class for tree
implementors to use for implementation inheritence. |
class |
org.dom4j.tree.AbstractBranch
AbstractBranch is an abstract base class for tree implementors
to use for implementation inheritence. |
class |
org.dom4j.tree.AbstractElement
AbstractElement is an abstract base class for tree
implementors to use for implementation inheritence. |
class |
org.dom4j.tree.AbstractNode
AbstractNode is an abstract base class for tree implementors
to use for implementation inheritence. |
class |
org.dom4j.tree.BaseElement
BaseElement is a useful base class for implemementation
inheritence of an XML element. |
class |
org.dom4j.tree.DefaultAttribute
DefaultAttribute implements a doubly linked node which
supports the parent relationship and is mutable. |
class |
org.dom4j.tree.DefaultElement
DefaultElement is the default DOM4J default implementation of
an XML element. |
class |
org.dom4j.tree.FlyweightAttribute
FlyweightAttribute is a Flyweight pattern implementation of a
singly linked, read-only XML Attribute. |
Modifier and Type | Class and Description |
---|---|
class |
IndexedElement
IndexedElement is an implementation of Element which
maintains an index of the attributes and elements it contains to optimise
lookups via name. |
class |
NonLazyElement
NonLazyElement is the default DOM4J default implementation of
an XML element. |
class |
UserDataAttribute
UserDataAttribute support the adornment of a user data object
on an Element or Attribute instance such that the methods
UserDataAttribute.setData(Object) will get and set the values of a user data object. |
class |
UserDataElement
UserDataElement support the adornment of a user data object on
an Element or Attribute instance such that the methods
UserDataElement.setData(Object) will get and set the values of a user data object. |
Modifier and Type | Method and Description |
---|---|
protected void |
IndexedElement.addNode(Node node) |
int |
NodeComparator.compare(Node n1,
Node n2) |
protected boolean |
IndexedElement.removeNode(Node node) |
Copyright ? 2005 MetaStuff Ltd. All Rights Reserved. Hosted by