net.sf.japaki.beans
Class Properties

java.lang.Object
  extended by net.sf.japaki.beans.Properties

public final class Properties
extends Object

Contains some standard properties.


Method Summary
static
<V> Property<Object,V>
dummyProperty()
          A property for values that are stored nowhere, it can be used like a "virtual" additional property of any bean.
static
<K> Property<KeyValueBean<K,?>,K>
keyProperty()
          Returns the property for the key of a KeyValueBean.
static
<V> Property<Map.Entry<?,V>,V>
mapValueProperty()
          Returns the property for the value of a Map.Entry.
static
<V> Property<V,V>
selfProperty()
          Returns the property that returns the given bean as the value.
static
<E> Property<SinglePropertyBean<E>,E>
singleProperty()
          Returns the property of a SinglePropertyBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

singleProperty

public static <E> Property<SinglePropertyBean<E>,E> singleProperty()
Returns the property of a SinglePropertyBean.

Returns:
the property of a SinglePropertyBean

keyProperty

public static final <K> Property<KeyValueBean<K,?>,K> keyProperty()
Returns the property for the key of a KeyValueBean.

Returns:
the property for the key of a KeyValueBean

mapValueProperty

public static final <V> Property<Map.Entry<?,V>,V> mapValueProperty()
Returns the property for the value of a Map.Entry.

Returns:
the property for the value of an Entry

selfProperty

public static final <V> Property<V,V> selfProperty()
Returns the property that returns the given bean as the value.

Returns:
the property that returns the given bean as the value

dummyProperty

public static final <V> Property<Object,V> dummyProperty()
A property for values that are stored nowhere, it can be used like a "virtual" additional property of any bean.

The get-method returns null, the set-method does nothing.

Returns:
the dummy property