public class SlotMapper
extends java.lang.Object
Constructor and Description |
---|
SlotMapper() |
Modifier and Type | Method and Description |
---|---|
RegistryBean |
getBean()
Get the bean.
|
Property |
getProperty()
Get the property.
|
void |
init(RegistryBean bean,
Property property)
Initializes the mapper.
|
void |
toBean(PersistenceContext context,
javax.xml.registry.infomodel.RegistryObject ro)
Maps data from
RegistryObject to a bean. |
java.util.List<javax.xml.registry.infomodel.RegistryObject> |
toJaxr(PersistenceContext context,
javax.xml.registry.infomodel.RegistryObject ro)
Map property data from a bean to a
RegistryObject . |
public void toBean(PersistenceContext context, javax.xml.registry.infomodel.RegistryObject ro) throws javax.xml.registry.JAXRException
PropertyMapper
RegistryObject
to a bean.context
- The PersistenceContext
instancero
- The JAXR RegistryObject
javax.xml.registry.JAXRException
- If a JAXR error occurs while accessing the registry objectpublic java.util.List<javax.xml.registry.infomodel.RegistryObject> toJaxr(PersistenceContext context, javax.xml.registry.infomodel.RegistryObject ro) throws javax.xml.registry.JAXRException
PropertyMapper
RegistryObject
.context
- The PersistenceContext
objectro
- The RegistryObject
which should be mapped to the beanList
of RegistryObject
objects that have been modified.javax.xml.registry.JAXRException
- If a JAXR error occurs while trying to modify the registry objectspublic RegistryBean getBean() throws MappingException
PropertyMapper
getBean
in interface PropertyMapper
RegistryBean
bean objectMappingException
- If an error occurs while trying to access the bean objectpublic Property getProperty() throws MappingException
PropertyMapper
getProperty
in interface PropertyMapper
Property
objectMappingException
- If an error occurs while trying to obtain the property instancepublic void init(RegistryBean bean, Property property) throws MappingException
PropertyMapper
init
in interface PropertyMapper
bean
- The RegistryBean
objectproperty
- The Property
objectMappingException
- If an error occurs while initializing the mapper