|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.conf.Value org.apache.openjpa.lib.conf.ObjectValue
public class ObjectValue
An object Value
.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.lib.conf.Value |
---|
INVISIBLE |
Constructor Summary | |
---|---|
ObjectValue(String prop)
|
Method Summary | |
---|---|
Object |
configure(Object obj,
Configuration conf)
Configure the given object. |
Object |
configure(Object obj,
Configuration conf,
boolean fatal)
Configure the given object. |
Object |
get()
The internal value. |
protected String |
getInternalString()
Return the internal string form of this value. |
Class<?> |
getValueType()
Returns the type of the property that this Value represents. |
Object |
instantiate(Class<?> type,
Configuration conf)
Instantiate the object as an instance of the given class. |
Object |
instantiate(Class<?> type,
Configuration conf,
boolean fatal)
Instantiate the object as an instance of the given class. |
Object |
newInstance(String clsName,
Class<?> type,
Configuration conf,
boolean fatal)
Allow subclasses to instantiate additional plugins. |
protected void |
objectChanged()
Implement this method to synchronize internal data with the new object value. |
void |
set(Object obj)
The internal value. |
void |
set(Object obj,
boolean derived)
The internal value. |
protected void |
setInternalObject(Object obj)
Set this value from an object. |
protected void |
setInternalString(String str)
Set this value from the given string. |
Methods inherited from class org.apache.openjpa.lib.conf.Value |
---|
addEquivalentKey, addListener, alias, alias, assertChangeable, clone, equals, getAliases, getDefault, getEquivalentKeys, getInstantiatingGetter, getListeners, getLoadKey, getOriginalValue, getProperty, getPropertyKeys, getScope, getString, hashCode, hide, isAliasListComprehensive, isDynamic, isHidden, isPrivate, makePrivate, matches, removeListener, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setDynamic, setInstantiatingGetter, setLoadKey, setObject, setProperty, setScope, setString, toString, unalias, unalias, valueChanged |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectValue(String prop)
Method Detail |
---|
public Object get()
get
in class Value
public void set(Object obj)
public void set(Object obj, boolean derived)
derived
- if true, this value was derived from other propertiespublic Object instantiate(Class<?> type, Configuration conf)
instantiate(type, conf, true)
.
public Object instantiate(Class<?> type, Configuration conf, boolean fatal)
public Object configure(Object obj, Configuration conf)
public Object configure(Object obj, Configuration conf, boolean fatal)
public Object newInstance(String clsName, Class<?> type, Configuration conf, boolean fatal)
public Class<?> getValueType()
Value
getValueType
in class Value
protected void objectChanged()
protected String getInternalString()
Value
getInternalString
in class Value
protected void setInternalString(String str)
Value
setInternalString
in class Value
protected void setInternalObject(Object obj)
Value
setInternalObject
in class Value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |