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.
|
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.
|
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.Copyright © 2020 JBoss by Red Hat. All rights reserved.