public class SpecificationPlugin extends ObjectValue implements ValueListener
| Constructor and Description |
|---|
SpecificationPlugin(Configuration conf,
String prop) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getValueType()
Returns the type of the property that this Value represents.
|
void |
set(Object obj)
Set a value from the given object after validating.
|
void |
setString(String str)
Set a value from the given String after validating.
|
protected void |
validateOverwrite(Specification newSpec)
Validates if the given Specification can overwrite the current
Specification.
|
void |
valueChanged(Value value)
Callback used by
Value objects to notify listener of change. |
configure, configure, get, getInternalString, instantiate, instantiate, newInstance, objectChanged, set, setInternalObject, setInternalStringaddEquivalentKey, 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, toString, unalias, unalias, valueChangedprotected static final Localizer _loc
public SpecificationPlugin(Configuration conf, String prop)
public Class<?> getValueType()
ValuegetValueType in class ObjectValuepublic void setString(String str)
public void set(Object obj)
set in class ObjectValueobj - can be null to set the Specification to null.protected void validateOverwrite(Specification newSpec)
fatal - UserException if the given Specification is same as
the current Specification but has a higher major version.Specification.equals(Object)public void valueChanged(Value value)
ValueListenerValue objects to notify listener of change.valueChanged in interface ValueListenerCopyright © 2006–2022 Apache Software Foundation. All rights reserved.