|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.japaki.beans.ConstantProperty<V>
public class ConstantProperty<V>
A property that always returns the same value instead of retrieving it from a bean.
| Method Summary | ||
|---|---|---|
Class<V> |
getType()
Returns the class of the stored value. |
|
V |
getValue(Object bean)
Returns the stored value. |
|
static
|
newInstance(V value)
Constructs a constant property using the given value. |
|
void |
setValue(Object bean,
V value)
Does nothing. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <V> Property<Object,V> newInstance(V value)
value - a constant. null is allowed.
public V getValue(Object bean)
getValue in interface Property<Object,V>bean - ignored
public void setValue(Object bean,
V value)
setValue in interface Property<Object,V>bean - ignoredvalue - ignored
IllegalArgumentException - if the specified value does not equal
the constantpublic Class<V> getType()
getType in interface Property<Object,V>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||