oracle.jdeveloper.audit.analyzer
Class Metric
java.lang.Object
oracle.jdeveloper.audit.analyzer.Profileable
oracle.jdeveloper.audit.analyzer.Attribute
oracle.jdeveloper.audit.analyzer.Metric
- public class Metric
- extends Attribute
An attribute computed during a traversal of the Audit object model. It differs from a column in that the latter does not require a traversal. The configurable state of a metric is exposed through JavaBeans properties. Every metric has category, name, enabled, value class, warning threshold, and error threshold properties inherited from Attribute. A metric can expose additional properties which the Audit framework will discover by introspection and add to the appropriate Audit preferences panel.
Localized label, tool tip, and description strings are returned by this class using the Localizer
supplied to the constructor and the following keys:
"metric." + getName() + ".label"
"metric." + getName() + ".tip"
"metric." + getName() + ".description"
- See Also:
Localizer
Constructor Summary |
Metric(java.lang.String name, Category category, java.lang.Class type, Localizer localizer)
Creates a metric with no thresholds. |
Metric(java.lang.String name, Category category, java.lang.Class type, java.lang.Object threshold, Localizer localizer)
Creates a metric. |
Method Summary |
java.lang.String |
description()
Gets the localized description text for this metric from its localizer using the key "metric." + getName() + ".description" . |
java.lang.String |
label()
Gets the localized label text for this metric from its localizer using the key "metric." + getName() + ".label" . |
java.lang.String |
tip()
Gets the localized tool tip text for this metric from its localizer using the key "metric." + getName() + ".tip" . |
java.lang.String |
toString()
|
Methods inherited from class oracle.jdeveloper.audit.analyzer.Profileable |
addPropertyChangeListener, addPropertyChangeListener, context, context, equals, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, hashCode, name, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Metric
public Metric(java.lang.String name,
Category category,
java.lang.Class type,
java.lang.Object threshold,
Localizer localizer)
- Creates a metric.
- Parameters:
name
- The name of this metric.
category
- The category of this metric.
type
- The type of this metric.
threshold
- The threshold of this metric.
localizer
- The localizer which supplies localized strings for this metric.
Metric
public Metric(java.lang.String name,
Category category,
java.lang.Class type,
Localizer localizer)
- Creates a metric with no thresholds.
- Parameters:
name
- The name of this metric.
category
- The category of this metric.
type
- The type of this metric.
localizer
- The localizer which supplies localized strings for this metric.
label
public java.lang.String label()
- Gets the localized label text for this metric from its localizer using the key
"metric." + getName() + ".label"
.
-
- Specified by:
label
in class Profileable
-
- See Also:
Localizer
tip
public java.lang.String tip()
- Gets the localized tool tip text for this metric from its localizer using the key
"metric." + getName() + ".tip"
.
-
- Specified by:
tip
in class Profileable
-
- See Also:
Localizer
description
public java.lang.String description()
- Gets the localized description text for this metric from its localizer using the key
"metric." + getName() + ".description"
.
-
- Specified by:
description
in class Profileable
-
- See Also:
Localizer
toString
public java.lang.String toString()
Copyright © 1997, 2004, Oracle. All rights reserved.