com.softwareag.centrasite.appl.framework.persistence.mapper
Interface PropertyMapper

All Known Implementing Classes:
AssociationMapper, AssociationTargetMapper, ClassificationAttributePropertyMapper, ClassificationConceptMapper, ClassificationMapper, ClassifiedInstancePropertyMapper, ExternalLinkMapper, FileAttributePropertyMapper, RegistryObjectPropertyMapper, RelationshipAttributePropertyMapper, SlotMapper, SlotsMapper, TelephoneNumbersMapper

public interface PropertyMapper

The interface represent a mapper of a bean property to a corresponding RegistryObject property or relation.


Method Summary
 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.
 

Method Detail

init

void init(RegistryBean bean,
          Property property)
          throws MappingException
Initializes the mapper.

Parameters:
bean -
property -
Throws:
MappingException

toJaxr

java.util.List<javax.xml.registry.infomodel.RegistryObject> toJaxr(PersistenceContext context,
                                                                   javax.xml.registry.infomodel.RegistryObject ro)
                                                                   throws javax.xml.registry.JAXRException,
                                                                          MappingException
Map property data from a bean to a RegistryObject.

Parameters:
context -
ro -
Returns:
List of RegistryObject objects that have been modified.
Throws:
JAXRException, - MappingException
javax.xml.registry.JAXRException
MappingException

toBean

void toBean(PersistenceContext context,
            javax.xml.registry.infomodel.RegistryObject ro)
            throws javax.xml.registry.JAXRException,
                   MappingException
Maps data from RegistryObject to a bean.

Parameters:
context -
ro -
Throws:
JAXRException, - MappingException
javax.xml.registry.JAXRException
MappingException

getBean

RegistryBean getBean()
                     throws MappingException
Get the bean.

Returns:
the bean
Throws:
MappingException

getProperty

Property getProperty()
                     throws MappingException
Get the property.

Returns:
the property
Throws:
MappingException