public class Metric extends MetricEntry
attributes, description, id, location, name, procedureName
Constructor and Description |
---|
Metric(java.lang.String name,
MetaModelElement type,
java.lang.String category)
Creates a new metric definition.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategory()
Gets the category (structural property) measured by the metric.
|
MetaModelElement |
getType()
Retrieves the type of elements for which the metric is defined.
|
boolean |
isInternal()
Tests if this metric is internal or externally visible in the output.
|
java.lang.String |
toString()
Returns a string representation of the metric.
|
getAttributes, getBriefDescription, getFullDescription, getLocation, getName, getProcedureName
public Metric(java.lang.String name, MetaModelElement type, java.lang.String category)
name
- Name of the metric.type
- Metamodel element type of the elements for which this metric
is defined.category
- The structural property measured by the metric.public MetaModelElement getType()
public java.lang.String getCategory()
public boolean isInternal()
true
if the metric is internal.public java.lang.String toString()
toString
in class java.lang.Object