|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- public interface BeanMapper<T extends RegistryBean>
Interface provides methods for mapping a Bean RegistryBean
to JAXR
RegistryObject
;
Method Summary | |
---|---|
java.lang.Class<T> |
getBeanClass()
Retrieves the class of the bean which this BeanMapper is parameterized with. |
T |
toBean(PersistenceContext context,
javax.xml.registry.infomodel.RegistryObject registryObject)
The method creates and populates an object of type T with
the data from a RegistryObject . |
java.util.List<javax.xml.registry.infomodel.RegistryObject> |
toJaxr(PersistenceContext context,
T t)
The method maps the information in the object of type T to
a list of registry objects. |
Method Detail |
---|
T toBean(PersistenceContext context, javax.xml.registry.infomodel.RegistryObject registryObject) throws MappingException, javax.xml.registry.JAXRException
T
with
the data from a RegistryObject
.
context
- registryObject
-
MappingException
javax.xml.registry.JAXRException
java.util.List<javax.xml.registry.infomodel.RegistryObject> toJaxr(PersistenceContext context, T t) throws MappingException, javax.xml.registry.JAXRException
T
to
a list of registry objects. Note the first object in the
List
is the primary mapped object. All following are
related objects like classifications, associations and etc.
context
- t
-
List
of RegistryObject
objects modified during
the mapping.
MappingException
javax.xml.registry.JAXRException
java.lang.Class<T> getBeanClass()
BeanMapper
is parameterized with.
Class
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |