About Us Home Contributors License Components Sandbox Commons JXPath Overview User's Guide Javadoc (Release 1.2) Release Notes (1.2) Mailing lists Team CVS Project Documentation About JXPath Project Info Project Reports Unit Tests Metrics Source Xref Test Xref Project License Task List Development Process General Information Charter Volunteering Contributing Patches Releasing Components Jakarta Community Get Involved Mailing Lists Access CVS Repositories Commons Resources (Unofficial) Wiki Japanese Translation Korean Translation Related Apache Commons DB Commons XML Commons | ### Metric Results [ summary ] [ packages ] [ cycles ] [ explanations ] The following document contains the results of a JDepend metric 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.apache.commons.jxpath | 27 | 15 | 12 | 14 | 12 | 0.56 | 46% | 2%
org.apache.commons.jxpath.functions | 2 | 0 | 2 | 1 | 4 | 0 | 80% | 20%
org.apache.commons.jxpath.ri | 11 | 2 | 9 | 10 | 13 | 0.18 | 57% | 25%
org.apache.commons.jxpath.ri.axes | 14 | 0 | 14 | 2 | 7 | 0 | 78% | 22%
org.apache.commons.jxpath.ri.compiler | 35 | 6 | 29 | 7 | 8 | 0.17 | 53% | 30%
org.apache.commons.jxpath.ri.model | 5 | 3 | 2 | 9 | 8 | 0.6 | 47% | 7%
org.apache.commons.jxpath.ri.model.beans | 16 | 3 | 13 | 6 | 8 | 0.19 | 57% | 24%
org.apache.commons.jxpath.ri.model.container | 2 | 0 | 2 | 1 | 7 | 0 | 88% | 12%
org.apache.commons.jxpath.ri.model.dom | 7 | 0 | 7 | 0 | 9 | 0 | 100% | 0%
org.apache.commons.jxpath.ri.model.dynabeans | 3 | 0 | 3 | 0 | 8 | 0 | 100% | 0%
org.apache.commons.jxpath.ri.model.dynamic | 5 | 0 | 5 | 1 | 7 | 0 | 88% | 12%
org.apache.commons.jxpath.ri.model.jdom | 7 | 0 | 7 | 0 | 8 | 0 | 100% | 0%
org.apache.commons.jxpath.ri.parser | 8 | 1 | 7 | 1 | 4 | 0.12 | 80% | 7%
org.apache.commons.jxpath.servlet | 11 | 0 | 11 | 0 | 6 | 0 | 100% | 0%
org.apache.commons.jxpath.util | 7 | 1 | 6 | 11 | 6 | 0.14 | 35% | 50%
org.apache.commons.jxpath.xml | 5 | 2 | 3 | 1 | 7 | 0.4 | 88% | 27%
### Packages [ summary ] [ packages ] [ cycles ] [ explanations ] #### org.apache.commons.jxpath
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
14 | 12 | 56% | 46% | 2%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
AbstractFactory CompiledExpression Container DynamicPropertyHandler ExpressionContext Function Functions IdentityManager JXPathBeanInfo JXPathContext JXPathContextFactory KeyManager NodeSet Pointer Variables | BasicNodeSet BasicVariables ClassFunctions FunctionLibrary JXPathBasicBeanInfo JXPathBasicBeanInfo$1 JXPathContextFactoryConfigurationError JXPathException JXPathIntrospector MapDynamicPropertyHandler PackageFunctions XMLDocumentContainer | org.apache.commons.jxpath.functions org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.model.beans org.apache.commons.jxpath.ri.model.container org.apache.commons.jxpath.ri.model.dom org.apache.commons.jxpath.ri.model.dynabeans org.apache.commons.jxpath.ri.model.dynamic org.apache.commons.jxpath.ri.model.jdom org.apache.commons.jxpath.servlet org.apache.commons.jxpath.util org.apache.commons.jxpath.xml | java.beans java.io java.lang java.net java.text java.util javax.xml.transform javax.xml.transform.dom org.apache.commons.jxpath.functions org.apache.commons.jxpath.util org.apache.commons.jxpath.xml org.w3c.dom
#### org.apache.commons.jxpath.functions
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
1 | 4 | 0% | 80% | 20%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | ConstructorFunction MethodFunction | org.apache.commons.jxpath | java.lang java.lang.reflect org.apache.commons.jxpath org.apache.commons.jxpath.util
#### org.apache.commons.jxpath.ri
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
10 | 13 | 18% | 57% | 25%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
Compiler EvalContext | EvalContext$1 InfoSetUtil JXPathCompiledExpression JXPathContextFactoryReferenceImpl JXPathContextReferenceImpl JXPathContextReferenceImpl$1 NamespaceResolver Parser QName | org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.model.beans org.apache.commons.jxpath.ri.model.container org.apache.commons.jxpath.ri.model.dom org.apache.commons.jxpath.ri.model.dynabeans org.apache.commons.jxpath.ri.model.dynamic org.apache.commons.jxpath.ri.model.jdom org.apache.commons.jxpath.ri.parser | java.io java.lang java.lang.ref java.util org.apache.commons.jxpath org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.model.beans org.apache.commons.jxpath.ri.model.container org.apache.commons.jxpath.ri.model.dynamic org.apache.commons.jxpath.ri.parser org.apache.commons.jxpath.util
#### org.apache.commons.jxpath.ri.axes
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
2 | 7 | 0% | 78% | 22%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | AncestorContext AttributeContext ChildContext DescendantContext InitialContext NamespaceContext NodeSetContext ParentContext PrecedingOrFollowingContext PredicateContext RootContext SelfContext SimplePathInterpreter UnionContext | org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.compiler | java.lang java.util org.apache.commons.jxpath org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.model.beans
#### org.apache.commons.jxpath.ri.compiler
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
7 | 8 | 17% | 53% | 30%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
CoreOperation CoreOperationCompare Expression NodeTest Operation Path | Constant CoreFunction CoreOperationAdd CoreOperationAnd CoreOperationDivide CoreOperationEqual CoreOperationGreaterThan CoreOperationGreaterThanOrEqual CoreOperationLessThan CoreOperationLessThanOrEqual CoreOperationMod CoreOperationMultiply CoreOperationNegate CoreOperationNotEqual CoreOperationOr CoreOperationSubtract CoreOperationUnion Expression$PointerIterator Expression$ValueIterator ExpressionPath ExtensionFunction LocationPath NameAttributeTest NodeNameTest NodeTypeTest ProcessingInstructionTest Step TreeCompiler VariableReference | org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.model.beans org.apache.commons.jxpath.ri.model.container org.apache.commons.jxpath.ri.model.dom org.apache.commons.jxpath.ri.model.jdom | java.lang java.text java.util org.apache.commons.jxpath org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.util
#### org.apache.commons.jxpath.ri.model
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
9 | 8 | 60% | 47% | 7%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
NodeIterator NodePointer NodePointerFactory | VariablePointer VariablePointer$1 | org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri.model.beans org.apache.commons.jxpath.ri.model.container org.apache.commons.jxpath.ri.model.dom org.apache.commons.jxpath.ri.model.dynabeans org.apache.commons.jxpath.ri.model.dynamic org.apache.commons.jxpath.ri.model.jdom | java.io java.lang java.util org.apache.commons.jxpath org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri.model.beans org.apache.commons.jxpath.util
#### org.apache.commons.jxpath.ri.model.beans
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
6 | 8 | 19% | 57% | 24%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
CollectionNodeIterator PropertyOwnerPointer PropertyPointer | BeanAttributeIterator BeanPointer BeanPointerFactory BeanPropertyPointer CollectionAttributeNodeIterator CollectionChildNodeIterator CollectionPointer CollectionPointerFactory LangAttributePointer NullElementPointer NullPointer NullPropertyPointer PropertyIterator | org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.model.dom org.apache.commons.jxpath.ri.model.dynabeans org.apache.commons.jxpath.ri.model.dynamic | java.beans java.lang java.util org.apache.commons.jxpath org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.util
#### org.apache.commons.jxpath.ri.model.container
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
1 | 7 | 0% | 88% | 12%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | ContainerPointer ContainerPointerFactory | org.apache.commons.jxpath.ri | java.lang java.util org.apache.commons.jxpath org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.util
#### org.apache.commons.jxpath.ri.model.dom
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
0 | 9 | 0% | 100% | 0%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | DOMAttributeIterator DOMAttributePointer DOMNamespaceIterator DOMNodeIterator DOMNodePointer DOMPointerFactory NamespacePointer | None | java.lang java.util org.apache.commons.jxpath org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.model.beans org.apache.commons.jxpath.util org.w3c.dom
#### org.apache.commons.jxpath.ri.model.dynabeans
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
0 | 8 | 0% | 100% | 0%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | DynaBeanPointer DynaBeanPointerFactory DynaBeanPropertyPointer | None | java.lang java.util org.apache.commons.beanutils org.apache.commons.jxpath org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.model.beans org.apache.commons.jxpath.util
#### org.apache.commons.jxpath.ri.model.dynamic
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
1 | 7 | 0% | 88% | 12%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | DynamicAttributeIterator DynamicPointer DynamicPointerFactory DynamicPropertyIterator DynamicPropertyPointer | org.apache.commons.jxpath.ri | java.lang java.util org.apache.commons.jxpath org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.model.beans org.apache.commons.jxpath.util
#### org.apache.commons.jxpath.ri.model.jdom
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
0 | 8 | 0% | 100% | 0%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | JDOMAttributeIterator JDOMAttributePointer JDOMNamespaceIterator JDOMNamespacePointer JDOMNodeIterator JDOMNodePointer JDOMPointerFactory | None | java.lang java.util org.apache.commons.jxpath org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.util org.jdom
#### org.apache.commons.jxpath.ri.parser
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
1 | 4 | 12% | 80% | 7%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
XPathParserConstants | ParseException SimpleCharStream Token TokenMgrError XPathParser XPathParser$JJCalls XPathParserTokenManager | org.apache.commons.jxpath.ri | java.io java.lang java.util org.apache.commons.jxpath.ri
#### org.apache.commons.jxpath.servlet
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
0 | 6 | 0% | 100% | 0%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
None | Constants HttpSessionAndServletContext HttpSessionHandler JXPathServletContexts KeywordVariables PageContextHandler PageScopeContext PageScopeContextHandler ServletContextHandler ServletRequestAndContext ServletRequestHandler | None | java.lang java.util javax.servlet javax.servlet.http javax.servlet.jsp org.apache.commons.jxpath
#### org.apache.commons.jxpath.util
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
11 | 6 | 14% | 35% | 50%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
TypeConverter | BasicTypeConverter BasicTypeConverter$ValueNodeSet BasicTypeConverter$ValuePointer MethodLookupUtils TypeUtils ValueUtils | org.apache.commons.jxpath org.apache.commons.jxpath.functions org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.model.beans org.apache.commons.jxpath.ri.model.container org.apache.commons.jxpath.ri.model.dom org.apache.commons.jxpath.ri.model.dynabeans org.apache.commons.jxpath.ri.model.dynamic org.apache.commons.jxpath.ri.model.jdom | java.beans java.lang java.lang.reflect java.util org.apache.commons.beanutils org.apache.commons.jxpath
#### org.apache.commons.jxpath.xml
Afferent Couplings | Efferent Couplings | Abstractness | Instability | Distance
--- | --- | --- | --- | ---
1 | 7 | 40% | 88% | 27%
Abstract Classes | Concrete Classes | Used by Packages | Uses Packages
--- | --- | --- | ---
XMLParser XMLParser2 | DOMParser DocumentContainer JDOMParser | org.apache.commons.jxpath | java.io java.lang java.net java.util javax.xml.parsers org.apache.commons.jxpath org.jdom.input
### Cycles [ summary ] [ packages ] [ cycles ] [ explanations ]
Package | Cyclic Dependencies
--- | ---
org.apache.commons.jxpath | org.apache.commons.jxpath.util org.apache.commons.jxpath
org.apache.commons.jxpath.functions | org.apache.commons.jxpath.util org.apache.commons.jxpath org.apache.commons.jxpath.util
org.apache.commons.jxpath.ri | org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri
org.apache.commons.jxpath.ri.axes | org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes
org.apache.commons.jxpath.ri.compiler | org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler
org.apache.commons.jxpath.ri.model | org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler
org.apache.commons.jxpath.ri.model.beans | org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler
org.apache.commons.jxpath.ri.model.container | org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler
org.apache.commons.jxpath.ri.model.dom | org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler
org.apache.commons.jxpath.ri.model.dynabeans | org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler
org.apache.commons.jxpath.ri.model.dynamic | org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri
org.apache.commons.jxpath.ri.model.jdom | org.apache.commons.jxpath.ri.model org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler
org.apache.commons.jxpath.ri.parser | org.apache.commons.jxpath.ri org.apache.commons.jxpath.ri.axes org.apache.commons.jxpath.ri.compiler org.apache.commons.jxpath.ri
org.apache.commons.jxpath.servlet | org.apache.commons.jxpath org.apache.commons.jxpath.util org.apache.commons.jxpath
org.apache.commons.jxpath.util | org.apache.commons.jxpath org.apache.commons.jxpath.util
org.apache.commons.jxpath.xml | org.apache.commons.jxpath org.apache.commons.jxpath.util org.apache.commons.jxpath
### 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.