com.softwareag.centrasite.appl.framework.persistence.mapper.impl
Class FileAttributePropertyMapper

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.mapper.impl.FileAttributePropertyMapper
All Implemented Interfaces:
PropertyMapper

public class FileAttributePropertyMapper
extends java.lang.Object

Property mapper class for handling associations defined by the FileAttribute property. Extends ExternalLinkMapper by adding attribute specific processing like adding special slot to the mapped external links.


Constructor Summary
FileAttributePropertyMapper()
           
 
Method Summary
 RegistryBean getBean()
          Get the bean.
 Property getProperty()
          Get the property.
 void init(RegistryBean pBean, 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileAttributePropertyMapper

public FileAttributePropertyMapper()
Method Detail

init

public void init(RegistryBean pBean,
                 Property property)
          throws MappingException
Description copied from interface: PropertyMapper
Initializes the mapper.

Specified by:
init in interface PropertyMapper
Throws:
MappingException
See Also:
PropertyMapper.init(RegistryBean, Property)

toBean

public void toBean(PersistenceContext context,
                   javax.xml.registry.infomodel.RegistryObject ro)
            throws javax.xml.registry.JAXRException
Description copied from interface: PropertyMapper
Maps data from RegistryObject to a bean.

Throws:
javax.xml.registry.JAXRException

toJaxr

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

Returns:
List of RegistryObject objects that have been modified.
Throws:
javax.xml.registry.JAXRException
MappingException

getBean

public RegistryBean getBean()
                     throws MappingException
Description copied from interface: PropertyMapper
Get the bean.

Specified by:
getBean in interface PropertyMapper
Returns:
the bean
Throws:
MappingException
See Also:
PropertyMapper.getBean()

getProperty

public Property getProperty()
                     throws MappingException
Description copied from interface: PropertyMapper
Get the property.

Specified by:
getProperty in interface PropertyMapper
Returns:
the property
Throws:
MappingException
See Also:
PropertyMapper.getProperty()