|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.japaki.beans.SelfProperty<V,B>
public class SelfProperty<V,B extends V>
The property that returns the given bean as the value.
| Constructor Summary | |
|---|---|
protected |
SelfProperty(Class<V> type)
Creates a new self property. |
| Method Summary | ||
|---|---|---|
Class<V> |
getType()
Returns the stored type. |
|
V |
getValue(B bean)
Returns the bean itself. |
|
static
|
newInstance(Class<V> type)
Creates a new self property. |
|
void |
setValue(B bean,
V value)
Not implemented. |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SelfProperty(Class<V> type)
type - type of the new property| Method Detail |
|---|
public static <V> Property<V,V> newInstance(Class<V> type)
type - type of the new property
public V getValue(B bean)
getValue in interface Property<B extends V,V>bean - a bean
public void setValue(B bean,
V value)
setValue in interface Property<B extends V,V>bean - ignoredvalue - ignored
UnsupportedOperationException - alwayspublic Class<V> getType()
getType in interface Property<B extends V,V>public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||