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, setInternalString
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, toString, unalias, unalias, valueChanged
protected static final Localizer _loc
public SpecificationPlugin(Configuration conf, String prop)
public Class<?> getValueType()
Value
getValueType
in class ObjectValue
public void setString(String str)
public void set(Object obj)
set
in class ObjectValue
obj
- 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)
ValueListener
Value
objects to notify listener of change.valueChanged
in interface ValueListener
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.