public class MetricDefinition extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MetricDefinition.Scope
The scope of a
MetricDefinition . |
Constructor and Description |
---|
MetricDefinition(String id)
Create a new
MetricDefinition . |
MetricDefinition(String id,
String displayName,
String description,
String reportedBy,
int priority,
MetricDefinition.Scope[] scopes)
Create a new
MetricDefinition . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getDescription() |
String |
getDisplayName() |
String |
getId() |
int |
getPriority() |
String |
getReportedBy() |
MetricDefinition.Scope[] |
getScopes() |
int |
hashCode() |
void |
setDescription(String description) |
void |
setDisplayName(String displayName) |
void |
setId(String id) |
void |
setPriority(int priority) |
void |
setReportedBy(String reportedBy) |
void |
setScopes(MetricDefinition.Scope[] scopes) |
String |
toString() |
boolean |
validForScope(MetricDefinition.Scope scope)
Determine if this
MetricDefinition is valid for a certain MetricDefinition.Scope . |
public MetricDefinition(String id)
MetricDefinition
.id
- the id of the metricpublic MetricDefinition(String id, String displayName, String description, String reportedBy, int priority, MetricDefinition.Scope[] scopes)
MetricDefinition
.id
- the id of the metricdisplayName
- the name to displaydescription
- the description of the metricreportedBy
- the id of the tool which reported a metricpriority
- the priority of a metricscopes
- the scopes of a metric (class, method, or both)public String getDisplayName()
public void setDisplayName(String displayName)
public String getId()
public void setId(String id)
public String getDescription()
public void setDescription(String description)
public String getReportedBy()
public void setReportedBy(String reportedBy)
public int getPriority()
public void setPriority(int priority)
public MetricDefinition.Scope[] getScopes()
public void setScopes(MetricDefinition.Scope[] scopes)
public boolean validForScope(MetricDefinition.Scope scope)
MetricDefinition
is valid for a certain MetricDefinition.Scope
.scope
- the MetricDefinition.Scope
to check forMetricDefinition
is valid for the provided MetricDefinition.Scope
, false otherwiseCopyright © 2016–2020. All rights reserved.