|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Tuplizer
A tuplizer defines the contract for things which know how to manage
a particular representation of a piece of data, given that
representation's EntityMode
(the entity-mode
essentially defining which representation).
Element
as the data structure and know how to access the
values as either nested Element
s or as Attribute
s.
EntityTuplizer
,
ComponentTuplizer
Method Summary | |
---|---|
Getter |
getGetter(int i)
Retrieve the getter for the specified property. |
Class |
getMappedClass()
Return the pojo class managed by this tuplizer. |
Object |
getPropertyValue(Object entity,
int i)
Extract the value of a particular property from the given entity. |
Object[] |
getPropertyValues(Object entity)
Extract the current values contained on the given entity. |
Object |
instantiate()
Generate a new, empty entity. |
boolean |
isInstance(Object object)
Is the given object considered an instance of the the entity (acconting for entity-mode) managed by this tuplizer. |
void |
setPropertyValues(Object entity,
Object[] values)
Inject the given values into the given entity. |
Method Detail |
---|
Object[] getPropertyValues(Object entity)
entity
- The entity from which to extract values.
void setPropertyValues(Object entity, Object[] values)
entity
- The entity.values
- The values to be injected.Object getPropertyValue(Object entity, int i)
entity
- The entity from which to extract the property value.i
- The index of the property for which to extract the value.
Object instantiate()
boolean isInstance(Object object)
object
- The object to be checked.
Class getMappedClass()
Getter getGetter(int i)
i
- The property index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |