public interface Tuplizer
EntityMode
(the entity-mode
essentially defining which representation).
If that given piece of data is thought of as a data structure, then a tuplizer
is the thing which knows how toElement
as the data structure and know how to access the
values as either nested Element
s or as Attribute
s.EntityTuplizer
,
ComponentTuplizer
Modifier and Type | Method and Description |
---|---|
Getter |
getGetter(int i)
Retrieve the getter for the specified property.
|
java.lang.Class |
getMappedClass()
Return the pojo class managed by this tuplizer.
|
java.lang.Object |
getPropertyValue(java.lang.Object entity,
int i)
Extract the value of a particular property from the given entity.
|
java.lang.Object[] |
getPropertyValues(java.lang.Object entity)
Extract the current values contained on the given entity.
|
java.lang.Object |
instantiate()
Generate a new, empty entity.
|
boolean |
isInstance(java.lang.Object object)
Is the given object considered an instance of the the entity (acconting
for entity-mode) managed by this tuplizer.
|
void |
setPropertyValues(java.lang.Object entity,
java.lang.Object[] values)
Inject the given values into the given entity.
|
java.lang.Object[] getPropertyValues(java.lang.Object entity)
entity
- The entity from which to extract values.void setPropertyValues(java.lang.Object entity, java.lang.Object[] values)
entity
- The entity.values
- The values to be injected.java.lang.Object getPropertyValue(java.lang.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.java.lang.Object instantiate()
boolean isInstance(java.lang.Object object)
object
- The object to be checked.java.lang.Class getMappedClass()
Getter getGetter(int i)
i
- The property index.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.