Package | Description |
---|---|
org.dom4j |
Defines the XML Document Object Model in Java interfaces together
with some helper classes.
|
org.dom4j.bean |
An implementation of the dom4j API which allows JavaBeans to be used to
store and retrieve attribute values from Element.
|
org.dom4j.dom |
An implementation of the dom4j API which also supports the
W3C object model.
|
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.rule.pattern | |
org.dom4j.swing |
A collection of adapters to allow easy integration with dom4j
XML documents and Swing such as TreeModels and TableModels.
|
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.
|
org.dom4j.xpath |
Provides the core tools needed to use the XPath library
|
Modifier and Type | Interface | 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 | Description |
---|---|---|
class |
Namespace |
Namespace is a Flyweight Namespace that can be shared amongst
nodes. |
Modifier and Type | Method | 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 |
Node.selectSingleNode(java.lang.String xpathExpression) |
selectSingleNode evaluates an XPath expression and returns
the result as a single Node instance. |
Node |
XPath.selectSingleNode(java.lang.Object context) |
Modifier and Type | Method | 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 |
NodeFilter.matches(Node node) |
matches returns true if the given node matches the filter
condition. |
boolean |
XPath.matches(Node node) |
matches returns true if the given node matches the XPath
expression. |
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 | Description |
---|---|
IllegalAddException(Branch parent,
Node node,
java.lang.String reason) |
|
IllegalAddException(Element parent,
Node node,
java.lang.String reason) |
Modifier and Type | Class | Description |
---|---|---|
class |
BeanAttribute |
BeanAttribute represents a mutable XML attribute which is
backed by a property of the JavaBean of its parent element. |
class |
BeanElement |
BeanElement uses a Java Bean to store its attributes. |
Modifier and Type | Class | Description |
---|---|---|
class |
DOMAttribute |
DOMAttribute implements a doubly linked attribute which
supports the W3C DOM API. |
class |
DOMCDATA |
DOMCDATA implements a CDATA Section which supports the W3C DOM
API. |
class |
DOMComment |
DOMText implements a Text node which supports the W3C DOM API. |
class |
DOMDocument |
DOMDocument implements an XML document which supports the W3C
DOM API. |
class |
DOMDocumentType |
DOMDocumentType implements a DocumentType node which supports
the W3C DOM API. |
class |
DOMElement |
DOMElement implements an XML element which supports the W3C
DOM API. |
class |
DOMEntityReference |
DOMEntity implements a Entity node which supports the W3C DOM
API. |
class |
DOMNamespace |
DOMNamespace implements a Namespace that is compatable with
the DOM API. |
class |
DOMProcessingInstruction |
DOMProcessingInstruction implements a ProcessingInstruction
node which supports the W3C DOM API. |
class |
DOMText |
DOMText implements a Text node which supports the W3C DOM API. |
Modifier and Type | Method | Description |
---|---|---|
static org.w3c.dom.Node |
DOMNodeHelper.appendChild(Node node,
org.w3c.dom.Node newChild) |
|
static org.w3c.dom.Attr |
DOMNodeHelper.asDOMAttr(Node attribute) |
|
static org.w3c.dom.Element |
DOMNodeHelper.asDOMElement(Node element) |
|
static org.w3c.dom.Node |
DOMNodeHelper.asDOMNode(Node node) |
|
static org.w3c.dom.Node |
DOMNodeHelper.cloneNode(Node node,
boolean deep) |
|
static org.w3c.dom.NamedNodeMap |
DOMNodeHelper.getAttributes(Node node) |
|
static org.w3c.dom.NodeList |
DOMNodeHelper.getChildNodes(Node node) |
|
static org.w3c.dom.Node |
DOMNodeHelper.getFirstChild(Node node) |
|
static org.w3c.dom.Node |
DOMNodeHelper.getLastChild(Node node) |
|
static java.lang.String |
DOMNodeHelper.getLocalName(Node node) |
|
static java.lang.String |
DOMNodeHelper.getNamespaceURI(Node node) |
|
static org.w3c.dom.Node |
DOMNodeHelper.getNextSibling(Node node) |
|
static java.lang.String |
DOMNodeHelper.getNodeValue(Node node) |
|
static org.w3c.dom.Document |
DOMNodeHelper.getOwnerDocument(Node node) |
|
static org.w3c.dom.Node |
DOMNodeHelper.getParentNode(Node node) |
|
static java.lang.String |
DOMNodeHelper.getPrefix(Node node) |
|
static org.w3c.dom.Node |
DOMNodeHelper.getPreviousSibling(Node node) |
|
static boolean |
DOMNodeHelper.hasAttributes(Node node) |
|
static boolean |
DOMNodeHelper.hasChildNodes(Node node) |
|
static org.w3c.dom.Node |
DOMNodeHelper.insertBefore(Node node,
org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild) |
|
static boolean |
DOMNodeHelper.isSupported(Node n,
java.lang.String feature,
java.lang.String version) |
|
static void |
DOMNodeHelper.normalize(Node node) |
|
static org.w3c.dom.Node |
DOMNodeHelper.removeChild(Node node,
org.w3c.dom.Node oldChild) |
|
static org.w3c.dom.Node |
DOMNodeHelper.replaceChild(Node node,
org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild) |
|
static void |
DOMNodeHelper.setNodeValue(Node node,
java.lang.String nodeValue) |
|
static void |
DOMNodeHelper.setPrefix(Node node,
java.lang.String prefix) |
|
static boolean |
DOMNodeHelper.supports(Node node,
java.lang.String feature,
java.lang.String version) |
Modifier and Type | Method | Description |
---|---|---|
Node |
STAXEventReader.readNode(javax.xml.stream.XMLEventReader reader) |
Reads a
Node from the event stream. |
Modifier and Type | Method | 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 | Description |
---|---|
DocumentSource(Node node) |
Creates a JAXP
SAXSource for the given Node . |
Modifier and Type | Method | Description |
---|---|---|
void |
Mode.fireRule(Node node) |
Runs the actions associated with the given node
|
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.
|
Rule |
RuleSet.getMatchingRule(Node node) |
Performs an XSLT processing model match for the rule which matches the
given Node the best.
|
boolean |
Pattern.matches(Node node) |
DOCUMENT ME!
|
boolean |
Rule.matches(Node node) |
DOCUMENT ME!
|
void |
Action.run(Node node) |
|
void |
NullAction.run(Node node) |
|
void |
Stylesheet.run(Node node) |
|
void |
Stylesheet.run(Node node,
java.lang.String mode) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
DefaultPattern.matches(Node node) |
|
boolean |
NodeTypePattern.matches(Node node) |
Modifier and Type | Field | Description |
---|---|---|
protected Node |
LeafTreeNode.xmlNode |
The dom4j Node which contains the
|
Modifier and Type | Method | Description |
---|---|---|
Node |
LeafTreeNode.getXmlNode() |
Modifier and Type | Method | Description |
---|---|---|
protected javax.swing.tree.TreeNode |
BranchTreeNode.createChildTreeNode(Node xmlNode) |
Factory method to create child tree nodes for a given XML node type
|
Constructor | Description |
---|---|
LeafTreeNode(javax.swing.tree.TreeNode parent,
Node xmlNode) |
|
LeafTreeNode(Node xmlNode) |
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractAttribute |
AbstractNamespace is an abstract base class for tree
implementors to use for implementation inheritence. |
class |
AbstractBranch |
AbstractBranch is an abstract base class for tree implementors
to use for implementation inheritence. |
class |
AbstractCDATA |
AbstractCDATA is an abstract base class for tree implementors
to use for implementation inheritence. |
class |
AbstractCharacterData |
AbstractCharacterData is an abstract base class for tree
implementors to use for implementation inheritence. |
class |
AbstractComment |
AbstractComment is an abstract base class for tree
implementors to use for implementation inheritence. |
class |
AbstractDocument |
AbstractDocument is an abstract base class for tree
implementors to use for implementation inheritence. |
class |
AbstractDocumentType |
AbstractDocumentType is an abstract base class for tree
implementors to use for implementation inheritence. |
class |
AbstractElement |
AbstractElement is an abstract base class for tree
implementors to use for implementation inheritence. |
class |
AbstractEntity |
AbstractEntity is an abstract base class for tree implementors
to use for implementation inheritence. |
class |
AbstractNode |
AbstractNode is an abstract base class for tree implementors
to use for implementation inheritence. |
class |
AbstractProcessingInstruction |
AbstractProcessingInstruction is an abstract base class for
tree implementors to use for implementation inheritence. |
class |
AbstractText |
AbstractText is an abstract base class for tree implementors
to use for implementation inheritence. |
class |
BaseElement |
BaseElement is a useful base class for implemementation
inheritence of an XML element. |
class |
DefaultAttribute |
DefaultAttribute implements a doubly linked node which
supports the parent relationship and is mutable. |
class |
DefaultCDATA |
DefaultCDATA is the default CDATA implementation. |
class |
DefaultComment |
DefaultComment is the default Comment implementation. |
class |
DefaultDocument |
DefaultDocument is the default DOM4J default implementation of
an XML document. |
class |
DefaultDocumentType |
DefaultDocumentType is the DOM4J default implementation of an
XML document type. |
class |
DefaultElement |
DefaultElement is the default DOM4J default implementation of
an XML element. |
class |
DefaultEntity |
DefaultEntity is the default Entity implementation. |
class |
DefaultNamespace |
DefaultNamespace implements a doubly linked node which
supports the parent relationship and is mutable. |
class |
DefaultProcessingInstruction |
DefaultProcessingInstruction is the default Processing
Instruction implementation. |
class |
DefaultText |
DefaultText is the default Text implementation. |
class |
FlyweightAttribute |
FlyweightAttribute is a Flyweight pattern implementation of a
singly linked, read-only XML Attribute. |
class |
FlyweightCDATA |
FlyweightCDATA is a Flyweight pattern implementation of a
singly linked, read-only XML CDATA. |
class |
FlyweightComment |
FlyweightComment is a Flyweight pattern implementation of a
singly linked, read-only XML Comment. |
class |
FlyweightEntity |
FlyweightEntity is a Flyweight pattern implementation of a
singly linked, read-only XML entity. |
class |
FlyweightProcessingInstruction |
FlyweightProcessingInstruction is a Flyweight pattern
implementation of a singly linked, read-only XML Processing Instruction. |
class |
FlyweightText |
FlyweightText is a Flyweight pattern implementation of a
singly linked, read-only XML Text. |
Modifier and Type | Method | Description |
---|---|---|
protected Node |
BackedList.asNode(java.lang.Object object) |
|
protected Node |
ContentListFacade.asNode(java.lang.Object object) |
|
Node |
AbstractDocument.asXPathResult(Element parent) |
|
Node |
AbstractNode.asXPathResult(Element parent) |
|
protected Node |
AbstractAttribute.createXPathResult(Element parent) |
|
protected Node |
AbstractNode.createXPathResult(Element parent) |
|
protected Node |
FlyweightCDATA.createXPathResult(Element parent) |
|
protected Node |
FlyweightComment.createXPathResult(Element parent) |
|
protected Node |
FlyweightEntity.createXPathResult(Element parent) |
|
protected Node |
FlyweightProcessingInstruction.createXPathResult(Element parent) |
|
protected Node |
FlyweightText.createXPathResult(Element parent) |
|
Node |
AbstractNode.detach() |
|
Node |
AbstractElement.getXPathResult(int index) |
|
Node |
AbstractBranch.node(int index) |
|
Node |
AbstractElement.node(int index) |
|
Node |
DefaultElement.node(int index) |
|
Node |
AbstractNode.selectSingleNode(java.lang.String xpathExpression) |
Modifier and Type | Method | Description |
---|---|---|
void |
AbstractBranch.add(Node node) |
|
void |
AbstractElement.add(Node node) |
|
protected void |
AbstractElement.addNewNode(int index,
Node node) |
|
protected void |
AbstractElement.addNewNode(Node node) |
Like addNode() but does not require a parent check
|
protected void |
DefaultElement.addNewNode(Node node) |
|
protected abstract void |
AbstractBranch.addNode(int index,
Node node) |
|
protected abstract void |
AbstractBranch.addNode(Node node) |
|
protected void |
AbstractElement.addNode(int index,
Node node) |
|
protected void |
AbstractElement.addNode(Node node) |
|
protected void |
DefaultDocument.addNode(int index,
Node node) |
|
protected void |
DefaultDocument.addNode(Node node) |
|
protected abstract void |
AbstractBranch.childAdded(Node node) |
Called when a new child node has been added to me to allow any parent
relationships to be created or events to be fired.
|
protected void |
AbstractDocument.childAdded(Node node) |
|
protected void |
AbstractElement.childAdded(Node node) |
Called when a new child node is added to create any parent relationships
|
protected abstract void |
AbstractBranch.childRemoved(Node node) |
Called when a child node has been removed to allow any parent
relationships to be deleted or events to be fired.
|
protected void |
AbstractDocument.childRemoved(Node node) |
|
protected void |
AbstractElement.childRemoved(Node node) |
|
int |
AbstractBranch.indexOf(Node node) |
|
int |
AbstractElement.indexOf(Node node) |
|
int |
DefaultElement.indexOf(Node node) |
|
protected void |
AbstractBranch.invalidNodeTypeAddException(Node node) |
Called when an invalid node has been added.
|
boolean |
AbstractBranch.remove(Node node) |
|
boolean |
AbstractElement.remove(Node node) |
|
protected abstract boolean |
AbstractBranch.removeNode(Node node) |
|
protected boolean |
AbstractElement.removeNode(Node node) |
|
protected boolean |
DefaultDocument.removeNode(Node node) |
|
protected boolean |
DefaultElement.removeNode(Node node) |
Modifier and Type | Class | 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.getData()
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.getData()
UserDataElement.setData(Object) will get and set the values of a user data object. |
Modifier and Type | Method | Description |
---|---|---|
protected void |
IndexedElement.addNode(Node node) |
|
int |
NodeComparator.compare(Node n1,
Node n2) |
|
protected boolean |
IndexedElement.removeNode(Node node) |
Modifier and Type | Method | Description |
---|---|---|
Node |
DefaultXPath.selectSingleNode(java.lang.Object context) |
Modifier and Type | Method | Description |
---|---|---|
protected java.lang.Object |
DefaultXPath.getCompareValue(Node node) |
DOCUMENT ME!
|
boolean |
DefaultXPath.matches(Node node) |
|
boolean |
XPathPattern.matches(Node node) |
Copyright ? 2005 MetaStuff Ltd. All Rights Reserved. Hosted by