|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Converter<T>
A converter is responsible for performing conversion between the actual object and the resource. Must be thread safe.
Method Summary | |
---|---|
boolean |
marshall(Resource resource,
T root,
Mapping mapping,
MarshallingContext context)
Marshall the given Object to the given Resource . |
T |
unmarshall(Resource resource,
Mapping mapping,
MarshallingContext context)
Unmarshall the given Resource to the appropiate Object . |
Method Detail |
---|
boolean marshall(Resource resource, T root, Mapping mapping, MarshallingContext context) throws ConversionException
Object
to the given Resource
. Will use
the mapping definition as to how to marshall the object.
Returns true
if data was saved in the index, and it can
be read as well (i.e. stored).
resource
- The resource to marhsall the object toroot
- The Object to marshall to the resourcemapping
- The mapping definition of how to marshall the Object to the resorucecontext
- The context for the current marhslling process
true
if data was saved in the the index that can be read.
ConversionException
T unmarshall(Resource resource, Mapping mapping, MarshallingContext context) throws ConversionException
Resource
to the appropiate Object
.
resource
- The resource to unmarshall into an Objectmapping
- The mapping definition of how to unmarshall the Resource into an Objectcontext
- The context for the current marshalling process
ConversionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |