org.dellroad.stuff.vaadin
Class PropertyDef<T>

java.lang.Object
  extended by org.dellroad.stuff.vaadin.PropertyDef<T>

public final class PropertyDef<T>
extends Object

Defines a Vaadin property, having a name, which is also the property ID, and its type.


Constructor Summary
PropertyDef(String name, Class<T> type)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          Get the name of this property.
 Class<T> getType()
          Get the type of the property value that this instance represents.
 int hashCode()
           
 T read(Item item)
          Read the property that this instance represents from the given Item.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDef

public PropertyDef(String name,
                   Class<T> type)
Method Detail

getName

public String getName()
Get the name of this property.


getType

public Class<T> getType()
Get the type of the property value that this instance represents.


read

public T read(Item item)
Read the property that this instance represents from the given Item.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object