SDMetrics Core is a Java library to calculate metrics of structural design properties such as coupling, size, and complexity for UML designs. It also checks design rules to automatically detect incomplete or incorrect design, and adherence to style guidelines such as circular dependencies or naming conventions. The library provides an XMI parser for import of XMI 1.x files with UML1.3/1.4 models, and XMI 2.0/2.1 files with UML 2.x models. Design metrics, rules, and XMI import are highly customizable.
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.