public class ObjectValue extends Value
Value.| Constructor and Description |
|---|
ObjectValue(java.lang.String prop) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
configure(java.lang.Object obj,
Configuration conf)
Configure the given object.
|
java.lang.Object |
configure(java.lang.Object obj,
Configuration conf,
boolean fatal)
Configure the given object.
|
java.lang.Object |
get()
The internal value.
|
protected java.lang.String |
getInternalString()
Return the internal string form of this value.
|
java.lang.Class<?> |
getValueType()
Returns the type of the property that this Value represents.
|
java.lang.Object |
instantiate(java.lang.Class<?> type,
Configuration conf)
Instantiate the object as an instance of the given class.
|
java.lang.Object |
instantiate(java.lang.Class<?> type,
Configuration conf,
boolean fatal)
Instantiate the object as an instance of the given class.
|
java.lang.Object |
newInstance(java.lang.String clsName,
java.lang.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(java.lang.Object obj)
The internal value.
|
void |
set(java.lang.Object obj,
boolean derived)
The internal value.
|
protected void |
setInternalObject(java.lang.Object obj)
Set this value from an object.
|
protected void |
setInternalString(java.lang.String str)
Set this value from the given string.
|
addEquivalentKey, addListener, alias, alias, assertChangeable, clone, containsReadOnlyConfigurationAsListener, equals, getAliases, getDefault, getEquivalentKeys, getInstantiatingGetter, getListeners, getLoadKey, getOriginalValue, getProperty, getPropertyKeys, getScope, getString, hashCode, hide, isAliasListComprehensive, isDefault, isDynamic, isHidden, isPrivate, makePrivate, matches, removeListener, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setDynamic, setInstantiatingGetter, setLoadKey, setObject, setProperty, setScope, setString, toString, unalias, unalias, valueChangedpublic void set(java.lang.Object obj)
public void set(java.lang.Object obj,
boolean derived)
derived - if true, this value was derived from other propertiespublic java.lang.Object instantiate(java.lang.Class<?> type,
Configuration conf)
instantiate(type, conf, true).public java.lang.Object instantiate(java.lang.Class<?> type,
Configuration conf,
boolean fatal)
public java.lang.Object configure(java.lang.Object obj,
Configuration conf)
public java.lang.Object configure(java.lang.Object obj,
Configuration conf,
boolean fatal)
public java.lang.Object newInstance(java.lang.String clsName,
java.lang.Class<?> type,
Configuration conf,
boolean fatal)
public java.lang.Class<?> getValueType()
ValuegetValueType in class Valueprotected void objectChanged()
protected java.lang.String getInternalString()
ValuegetInternalString in class Valueprotected void setInternalString(java.lang.String str)
ValuesetInternalString in class Valueprotected void setInternalObject(java.lang.Object obj)
ValuesetInternalObject in class ValueCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.