|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.audit.analyzer.Profileable
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 |
protected Profileable(java.lang.String name)
name
- The non-localized name of this bean.Method Detail |
public java.lang.String name()
public java.lang.Class context()
public void context(java.lang.Class context)
context
- The non-null class which defines the context over which
the name must be unique.public abstract java.lang.String label()
public abstract java.lang.String tip()
public abstract java.lang.String description()
public boolean equals(java.lang.Object object)
public int hashCode()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
public void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
public void firePropertyChange(java.lang.String propertyName, long oldValue, long newValue)
public void firePropertyChange(java.lang.String propertyName, float oldValue, float newValue)
public void firePropertyChange(java.lang.String propertyName, double oldValue, double newValue)
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.