Extension SDK 9.0.5

oracle.jdeveloper.audit.analyzer
Class Column

java.lang.Object
  extended byoracle.jdeveloper.audit.analyzer.Profileable
      extended byoracle.jdeveloper.audit.analyzer.Attribute
          extended byoracle.jdeveloper.audit.analyzer.Column

public abstract class Column
extends Attribute

An attribute computed from the constructs of the Audit object model. It differs from a metric in that the latter requires a traversal of the construct hierarchy. The configurable state of a column is exposed through JavaBeans properties. Every column has category, name, value class, and threshold properties inherited from Attribute. A column can expose additional properties which the Audit framework will discover by introspection and add to the appropriate Audit preferences panel. Columns are registered with the AuditManager at startup by IDE extensions.

Column subclasses must provide one or more value which accept a single parameter--either a Location, a Violation or a construct--and return a value of the value class. For a construct, if no value(Location) method is present, the value method invoked (if any) for a construct will be the one whose parameter is the most-specific type which is the same as or a supertype of the actual type of the construct. If a value(Location) method is present, that will be the method invoked regardless of other value methods present. For an object which is not a construct (in particular, a Violation), the value(Location) method is ignored.

Localized label, tool tip, and description strings are returned by this class using the Localizer supplied to the constructor and the following keys:

   "column." + getName() + ".label"
   "column." + getName() + ".tip"
   "column." + getName() + ".description"

See Also:
Localizer

Field Summary
 
Fields inherited from class oracle.jdeveloper.audit.analyzer.Attribute
comparator, threshold, type
 
Constructor Summary
protected Column(java.lang.String name, java.lang.Class type, Category category, Localizer localizer)
          Creates a column with no threshold.
protected Column(java.lang.String name, java.lang.Class type, Category category, java.lang.Object threshold, Localizer localizer)
          Creates a column.
 
Method Summary
 java.lang.String description()
          Gets the localized description text for this column from its localizer using the key "column." + getName() + ".description".
 java.lang.String label()
          Gets the localized label text for this column from its localizer using the key "column." + getName() + ".label".
 java.lang.String tip()
          Gets the localized tool tip text for this column from its localizer using the key "column." + getName() + ".tip".
 
Methods inherited from class oracle.jdeveloper.audit.analyzer.Attribute
comparator, getCategory, getEvaluator, getThreshold, getType, isEnabled, setEnabled, setThreshold
 
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, toString, wait, wait, wait
 

Constructor Detail

Column

protected Column(java.lang.String name,
                 java.lang.Class type,
                 Category category,
                 java.lang.Object threshold,
                 Localizer localizer)
Creates a column.

Parameters:
name - The name of this column.
type - The type of this column.
category - The category of this column.
threshold - The error threshold of this column.
localizer - The localizer which supplies localized strings for this column.

Column

protected Column(java.lang.String name,
                 java.lang.Class type,
                 Category category,
                 Localizer localizer)
Creates a column with no threshold.

Parameters:
name - The name of this column.
type - The type of this column.
category - The category of this column.
localizer - The localizer which supplies localized strings for this column.
Method Detail

label

public java.lang.String label()
Gets the localized label text for this column from its localizer using the key "column." + 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 column from its localizer using the key "column." + getName() + ".tip".

Specified by:
tip in class Profileable
See Also:
Localizer

description

public java.lang.String description()
Gets the localized description text for this column from its localizer using the key "column." + getName() + ".description".

Specified by:
description in class Profileable
See Also:
Localizer

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.