oracle.dacf.style
Class DefaultValues
java.lang.Object
|
+--oracle.dacf.style.DefaultValues
- All Implemented Interfaces:
- java.lang.Cloneable
- public class DefaultValues
- extends java.lang.Object
- implements java.lang.Cloneable
the DefaultValues class defines a DefaultValue for every property type.
The Style Editor requires a default value when creating a new Style Element, to
to initialize the Property Editor
- Version:
- PUBLIC
Method Summary |
void |
addValue(java.lang.Object object)
Adds a value to collection. |
java.lang.Object |
clone()
implementation of Cloneable interface |
java.lang.Object |
getValue(java.lang.Class cls)
returns the default value matching this class
If no value is defined, it will return a null value. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultValues
public DefaultValues()
- Constructor
clone
public java.lang.Object clone()
- implementation of Cloneable interface
- Overrides:
clone
in class java.lang.Object
addValue
public void addValue(java.lang.Object object)
- Adds a value to collection.
If a value is already defined for an object of this type, it will overwrite the
existing value
- Parameters:
object
- the value you want to add
getValue
public java.lang.Object getValue(java.lang.Class cls)
- returns the default value matching this class
If no value is defined, it will return a null value.
- Parameters:
cls
- the class type you want the default value for- Returns:
- the default value for this class