Extension SDK 9.0.5

oracle.jdeveloper.audit.analyzer
Class Profileable

java.lang.Object
  extended byoracle.jdeveloper.audit.analyzer.Profileable
Direct Known Subclasses:
Attribute, Category, Rule

public abstract class Profileable
extends java.lang.Object

An abstract base class for beans which can be configured in a profile, e.g., Category, Rule, and Metric.

This class defines five "properties", name, context, label, tip, and description. The getters and setter for these "properties" are not prefixed by "get" or "set", however, so they are technically not properties according to the JavaBeans specification or, more importantly, the Introspector. This avoids interfering with a subclass that wishes to define a JavaBeans property named, for example, "name".

Subclass properties should be bound, which means in practice that the setters should fire property change events. This class provides a complete set of firePropertyChange methods to make this convenient.

The name "property" is used to identify the bean for purposes of determining equality and marshalling and unmarshalling instances. It is expected to be unique among all beans with the same context class. This class defines equality in terms of context and name, so two beans can be equal even though subclass property values may differ. This definition captures the intuition that two different instances of the Unrestricted Field Access rule (from two different profiles) are the same rule even if a configuration property differs.


Constructor Summary
protected Profileable(java.lang.String name)
          Creates a profileable.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
 java.lang.Class context()
          Gets the context class of this profileable.
 void context(java.lang.Class context)
          Sets the context class of this profileable.
abstract  java.lang.String description()
          Gets the localized description for this profileable.
 boolean equals(java.lang.Object object)
           
 void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
           
 void firePropertyChange(java.lang.String propertyName, double oldValue, double newValue)
           
 void firePropertyChange(java.lang.String propertyName, float oldValue, float newValue)
           
 void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
           
 void firePropertyChange(java.lang.String propertyName, long oldValue, long newValue)
           
 void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
           
 int hashCode()
           
abstract  java.lang.String label()
          Gets the localized label text for this profileable.
 java.lang.String name()
          Gets the unlocalized name of this profileable.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
abstract  java.lang.String tip()
          Gets the localized tool tip text for this profileable.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Profileable

protected Profileable(java.lang.String name)
Creates a profileable.

Parameters:
name - The non-localized name of this bean.
Method Detail

name

public java.lang.String name()
Gets the unlocalized name of this profileable.


context

public java.lang.Class context()
Gets the context class of this profileable.


context

public void context(java.lang.Class context)
Sets the context class of this profileable. This method is intended to be called immediately after construction and may be called only once.

Parameters:
context - The non-null class which defines the context over which the name must be unique.

label

public abstract java.lang.String label()
Gets the localized label text for this profileable.


tip

public abstract java.lang.String tip()
Gets the localized tool tip text for this profileable.


description

public abstract java.lang.String description()
Gets the localized description for this profileable.


equals

public boolean equals(java.lang.Object object)

hashCode

public int hashCode()

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener listener)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               java.lang.Object oldValue,
                               java.lang.Object newValue)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               boolean oldValue,
                               boolean newValue)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               int oldValue,
                               int newValue)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               long oldValue,
                               long newValue)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               float oldValue,
                               float newValue)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               double oldValue,
                               double newValue)

Extension SDK

 

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