public class Property<E,T> extends Object
Property is the metamodel of Acid House entity's property.
This is called "Metamodel property" and consists of the type of property, the
name of property, the Metamodel instance which has this metamodel
property and String path representation to this metamodel property.| Constructor and Description |
|---|
Property(Metamodel<E> metamodel,
Type type,
String name)
Constructs a new
Property instance with the specified
Metamodel, property type and property name. |
Property(Property<E,?> parent,
Type type,
String name)
Constructs a new
Property instance with the specified
EmbeddedProperty, property type and property name. |
| Modifier and Type | Method and Description |
|---|---|
T |
get(Object entity)
Returns the property value which this metamodel property instance
represents from the specified entity instance.
|
Metamodel<E> |
metamodel()
Returns the
Metamodel instance which has this metamodel
property. |
String |
name()
Returns the property name which this metamodel property represents.
|
Property<E,?> |
parent()
Returns the parent
Property instance which has this metamodel
property. |
List<String> |
path()
Returns
String path representation to this property. |
void |
set(E entity,
Object value)
Sets the property value which this metamodel property instance
represents to the specified entity instance.
|
Type |
type()
Returns the property type which this metamodel property represents.
|
public Property(Metamodel<E> metamodel, Type type, String name)
Property instance with the specified
Metamodel, property type and property name.metamodel - The Metamodel instance which has this metamodel
property.type - The property type.name - The property name.public Property(Property<E,?> parent, Type type, String name)
Property instance with the specified
EmbeddedProperty, property type and property name.parent - The parent Property instance which has this metamodel
property.type - The property type.name - The property name.public String name()
public Metamodel<E> metamodel()
Metamodel instance which has this metamodel
property.Metamodel instance which has this metamodel property.public T get(Object entity)
entity - The entity instance from which you attempt to get the
property value. The specified entity have to make sure to be JavaBeans
to get property value from it.public void set(E entity, Object value)
entity - The entity instance into which you attempt to set the
property value. The specified entity have to make sure to be JavaBeans
to set property value into it.value - The property value to be set into entity instance.public Property<E,?> parent()
Property instance which has this metamodel
property.Property instance which has this metamodel
property.public Type type()
Copyright © 2009-2014 Eiichiro Uchiumi. All Rights Reserved.