##### dom4j

- Home
- FAQ
- Quick start
- Cookbook
- Comparison
- Goals
- Changes
- Download
- License
- Javadoc (1.6.1)
- Javadoc (1.5.2)
- Javadoc (1.4)

##### Project Documentation

- About dom4j
- Project Info
- Project Reports
  - Change Log
  - Changes
  - Checkstyle
  - Clover
  - Developer Activity
  - FAQs
  - File Activity
  - JavaDocs
  - JavaDoc Report
  - JavaDoc Warnings Report
  - Metrics
  - Unit Tests
  - Source Xref
  - Test Xref
  - Project License
- Development Process

##### Legend

- External Link
- Opens in a new window

## Metric Results

[ summary] [ packages] [ cycles] [ explanations]

The following document contains the results of a JDependmetric analysis. The various metrics are defined at the bottom of this document.

## Summary

[ summary] [ packages] [ cycles] [ explanations]

Package | TC | AC | CC | AC | EC | A | I | D
--- | --- | --- | --- | --- | --- | --- | --- | ---
org.dom4j | 26 | 18 | 8 | 12 | 10 | 0,69 | 45% | 15%
org.dom4j.bean | 5 | 0 | 5 | 0 | 8 | 0 | 100% | 0%
org.dom4j.datatype | 7 | 0 | 7 | 0 | 11 | 0 | 100% | 0%
org.dom4j.dom | 15 | 0 | 15 | 1 | 7 | 0 | 88% | 12%
org.dom4j.dtd | 4 | 0 | 4 | 1 | 1 | 0 | 50% | 50%
org.dom4j.io | 36 | 1 | 35 | 4 | 21 | 0,03 | 84% | 13%
org.dom4j.jaxb | 10 | 3 | 7 | 0 | 11 | 0,3 | 100% | 30%
org.dom4j.rule | 9 | 2 | 7 | 5 | 6 | 0,22 | 55% | 23%
org.dom4j.rule.pattern | 2 | 0 | 2 | 1 | 3 | 0 | 75% | 25%
org.dom4j.swing | 8 | 0 | 8 | 0 | 7 | 0 | 100% | 0%
org.dom4j.tree | 49 | 13 | 36 | 7 | 9 | 0,27 | 56% | 17%
org.dom4j.util | 14 | 2 | 12 | 3 | 8 | 0,14 | 73% | 13%
org.dom4j.xpath | 4 | 0 | 4 | 1 | 9 | 0 | 90% | 10%
org.dom4j.xpp | 1 | 0 | 1 | 1 | 5 | 0 | 83% | 17%

## Packages

[ summary] [ packages] [ cycles] [ explanations]

### org.dom4j

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
12 | 10 | 69% | 45% | 15%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
Attribute Branch CDATA CharacterData Comment Document DocumentType Element ElementHandler ElementPath Entity Node NodeFilter ProcessingInstruction Text Visitor VisitorSupport XPath | DocumentException DocumentFactory DocumentHelper IllegalAddException InvalidXPathException Namespace QName XPathException | org.dom4j.bean org.dom4j.datatype org.dom4j.dom org.dom4j.io org.dom4j.jaxb org.dom4j.rule org.dom4j.rule.pattern org.dom4j.swing org.dom4j.tree org.dom4j.util org.dom4j.xpath org.dom4j.xpp | java.io java.lang java.util org.dom4j.io org.dom4j.rule org.dom4j.tree org.dom4j.util org.dom4j.xpath org.jaxen org.xml.sax

### org.dom4j.bean

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
0 | 8 | 0% | 100% | 0%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | BeanAttribute BeanAttributeList BeanDocumentFactory BeanElement BeanMetaData | None | java.beans java.io java.lang java.lang.reflect java.util org.dom4j org.dom4j.tree org.xml.sax

### org.dom4j.datatype

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
0 | 11 | 0% | 100% | 0%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | DatatypeAttribute DatatypeDocumentFactory DatatypeElement DatatypeElementFactory InvalidSchemaException NamedTypeResolver SchemaParser | None | com.sun.msv.datatype com.sun.msv.datatype.xsd java.io java.lang java.util org.dom4j org.dom4j.io org.dom4j.tree org.dom4j.util org.relaxng.datatype org.xml.sax

### org.dom4j.dom

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
1 | 7 | 0% | 88% | 12%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | DOMAttribute DOMAttributeNodeMap DOMCDATA DOMComment DOMDocument DOMDocumentFactory DOMDocumentType DOMElement DOMEntityReference DOMNamespace DOMNodeHelper DOMNodeHelper$1 DOMNodeHelper$EmptyNodeList DOMProcessingInstruction DOMText | org.dom4j.jaxb | java.io java.lang java.util org.dom4j org.dom4j.tree org.dom4j.util org.w3c.dom

### org.dom4j.dtd

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
1 | 1 | 0% | 50% | 50%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | AttributeDecl ElementDecl ExternalEntityDecl InternalEntityDecl | org.dom4j.io | java.lang

### org.dom4j.io

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
4 | 21 | 3% | 84% | 13%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
ElementModifier | DOMReader DOMWriter DispatchHandler DocumentInputSource DocumentInputSource$1 DocumentResult DocumentSource ElementStack HTMLWriter HTMLWriter$FormatState JAXPHelper OutputFormat PruningDispatchHandler PruningElementStack SAXContentHandler SAXEventRecorder SAXEventRecorder$SAXEvent SAXHelper SAXModifier SAXModifyContentHandler SAXModifyElementHandler SAXModifyException SAXModifyReader SAXReader SAXReader$SAXEntityResolver SAXValidator SAXWriter STAXEventReader STAXEventWriter STAXEventWriter$AttributeIterator STAXEventWriter$NamespaceIterator XMLResult XMLWriter XPP3Reader XPPReader | org.dom4j org.dom4j.datatype org.dom4j.jaxb org.dom4j.tree | java.io java.lang java.lang.reflect java.net java.util javax.xml.namespace javax.xml.parsers javax.xml.stream javax.xml.stream.events javax.xml.stream.util javax.xml.transform.sax org.dom4j org.dom4j.dtd org.dom4j.tree org.dom4j.xpp org.gjt.xpp org.w3c.dom org.xml.sax org.xml.sax.ext org.xml.sax.helpers org.xmlpull.v1

### org.dom4j.jaxb

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
0 | 11 | 30% | 100% | 30%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
JAXBObjectHandler JAXBObjectModifier JAXBSupport | JAXBModifier JAXBModifier$JAXBElementModifier JAXBReader JAXBReader$PruningElementHandler JAXBReader$UnmarshalElementHandler JAXBRuntimeException JAXBWriter | None | java.io java.lang java.net java.nio.charset java.util javax.xml.bind javax.xml.transform.stream org.dom4j org.dom4j.dom org.dom4j.io org.xml.sax

### org.dom4j.rule

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
5 | 6 | 22% | 55% | 23%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
Action Pattern | Mode NullAction Rule RuleManager RuleManager$1 RuleSet Stylesheet | org.dom4j org.dom4j.rule.pattern org.dom4j.tree org.dom4j.util org.dom4j.xpath | java.io java.lang java.util org.dom4j org.dom4j.rule.pattern org.jaxen

### org.dom4j.rule.pattern

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
1 | 3 | 0% | 75% | 25%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | DefaultPattern NodeTypePattern | org.dom4j.rule | java.lang org.dom4j org.dom4j.rule

### org.dom4j.swing

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
0 | 7 | 0% | 100% | 0%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | BranchTreeNode BranchTreeNode$1 DocumentTreeModel LeafTreeNode LeafTreeNode$1 XMLTableColumnDefinition XMLTableDefinition XMLTableModel | None | java.io java.lang java.util javax.swing.table javax.swing.tree org.dom4j org.jaxen

### org.dom4j.tree

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
7 | 9 | 27% | 56% | 17%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
AbstractAttribute AbstractBranch AbstractCDATA AbstractCharacterData AbstractComment AbstractDocument AbstractDocumentType AbstractElement AbstractEntity AbstractNode AbstractProcessingInstruction AbstractText FilterIterator | BackedList BaseElement ConcurrentReaderHashMap ConcurrentReaderHashMap$1 ConcurrentReaderHashMap$BarrierLock ConcurrentReaderHashMap$Entry ConcurrentReaderHashMap$EntrySet ConcurrentReaderHashMap$HashIterator ConcurrentReaderHashMap$KeyIterator ConcurrentReaderHashMap$KeySet ConcurrentReaderHashMap$ValueIterator ConcurrentReaderHashMap$Values ContentListFacade DefaultAttribute DefaultCDATA DefaultComment DefaultDocument DefaultDocumentType DefaultElement DefaultEntity DefaultNamespace DefaultProcessingInstruction DefaultText ElementIterator ElementNameIterator ElementQNameIterator FlyweightAttribute FlyweightCDATA FlyweightComment FlyweightEntity FlyweightProcessingInstruction FlyweightText NamespaceCache NamespaceStack QNameCache SingleIterator | org.dom4j org.dom4j.bean org.dom4j.datatype org.dom4j.dom org.dom4j.io org.dom4j.util org.dom4j.xpp | java.io java.lang java.lang.ref java.lang.reflect java.util org.dom4j org.dom4j.io org.dom4j.rule org.xml.sax

### org.dom4j.util

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
3 | 8 | 14% | 73% | 13%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
ProxyDocumentFactory SingletonStrategy | AttributeHelper IndexedDocumentFactory IndexedElement NodeComparator NonLazyDocumentFactory NonLazyElement PerThreadSingleton SimpleSingleton UserDataAttribute UserDataDocumentFactory UserDataElement XMLErrorHandler | org.dom4j org.dom4j.datatype org.dom4j.dom | java.lang java.lang.ref java.util org.dom4j org.dom4j.rule org.dom4j.tree org.jaxen org.xml.sax

### org.dom4j.xpath

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
1 | 9 | 0% | 90% | 10%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | DefaultNamespaceContext DefaultXPath DefaultXPath$1 XPathPattern | org.dom4j | java.io java.lang java.util org.dom4j org.dom4j.rule org.jaxen org.jaxen.dom4j org.jaxen.pattern org.jaxen.saxpath

### org.dom4j.xpp

Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
1 | 5 | 0% | 83% | 17%

Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | ProxyXmlStartTag | org.dom4j.io | java.lang java.util org.dom4j org.dom4j.tree org.gjt.xpp

## Cycles

[ summary] [ packages] [ cycles] [ explanations]

Package | Cyclic Dependencies
--- | ---
org.dom4j | org.dom4j.util org.dom4j
org.dom4j.bean | org.dom4j org.dom4j.util org.dom4j
org.dom4j.datatype | org.dom4j org.dom4j.util org.dom4j
org.dom4j.dom | org.dom4j org.dom4j.util org.dom4j
org.dom4j.io | org.dom4j org.dom4j.util org.dom4j
org.dom4j.jaxb | org.dom4j org.dom4j.util org.dom4j
org.dom4j.rule | org.dom4j org.dom4j.util org.dom4j
org.dom4j.rule.pattern | org.dom4j org.dom4j.util org.dom4j
org.dom4j.swing | org.dom4j org.dom4j.util org.dom4j
org.dom4j.tree | org.dom4j org.dom4j.util org.dom4j
org.dom4j.util | org.dom4j org.dom4j.util
org.dom4j.xpath | org.dom4j org.dom4j.util org.dom4j
org.dom4j.xpp | org.dom4j org.dom4j.util org.dom4j

## Explanations

[ summary] [ packages] [ cycles] [ explanations]

The following explanations are for quick reference and are lifted directly from the original JDepend documentation.

Term | Description
--- | ---
Number of Classes | The number of concrete and abstract classes (and interfaces) in the package is an indicator of the extensibility of the package.
Afferent Couplings | The number of other packages that depend upon classes within the package is an indicator of the package's responsibility.
Efferent Couplings | The number of other packages that the classes in the package depend upon is an indicator of the package's independence.
Abstractness | The ratio of the number of abstract classes (and interfaces) in the analyzed package to the total number of classes in the analyzed package. The range for this metric is 0 to 1, with A=0 indicating a completely concrete package and A=1 indicating a completely abstract package.
Instability | The ratio of efferent coupling (Ce) to total coupling (Ce / (Ce + Ca)). This metric is an indicator of the package's resilience to change. The range for this metric is 0 to 1, with I=0 indicating a completely stable package and I=1 indicating a completely instable package.
Distance | The perpendicular distance of a package from the idealized line A + I = 1. This metric is an indicator of the package's balance between abstractness and stability. A package squarely on the main sequence is optimally balanced with respect to its abstractness and stability. Ideal packages are either completely abstract and stable (x=0, y=1) or completely concrete and instable (x=1, y=0). The range for this metric is 0 to 1, with D=0 indicating a package that is coincident with the main sequence and D=1 indicating a package that is as far from the main sequence as possible.
Cycles | Packages participating in a package dependency cycle are in a deadly embrace with respect to reusability and their release cycle. Package dependency cycles can be easily identified by reviewing the textual reports of dependency cycles. Once these dependency cycles have been identified with JDepend, they can be broken by employing various object-oriented techniques.