|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.versatile.core.AbstractValueProvider
cz.cuni.versatile.core.ConstantVP
ConstantVP stands for Constant Value Provider. The last-resort value provider, usually attached to the end of a value provider chain to ensure a property value is always defined.
Field Summary |
Fields inherited from class cz.cuni.versatile.core.AbstractValueProvider |
attrName, defaultProvider |
Constructor Summary | |
ConstantVP(java.lang.Object value)
|
Method Summary | |
java.lang.Object |
getLocalValue()
Returns the constant value provided during instantiation. |
boolean |
hasLocalValue()
Always returns true . |
Methods inherited from class cz.cuni.versatile.core.AbstractValueProvider |
getAttributeName, getDefault, getValue, hasValue, toPreferenceChain |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConstantVP(java.lang.Object value)
Method Detail |
public java.lang.Object getLocalValue()
ValueProvider.getLocalValue()
public boolean hasLocalValue()
true
.
true
if the value is set for this ValueProvider
instance,
false
otherwiseValueProvider.hasLocalValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |