org.apache.portals.graffito.jcr.mapper
Interface Mapper

All Known Implementing Classes:
DigesterMapperImpl

public interface Mapper

This component read the mapping file and gives an access to the ClassDescriptors (the mapping object model)

Author:
Lombart Christophe

Method Summary
 ClassDescriptor getClassDescriptorByClass(java.lang.Class clazz)
          Get the mapping defition to be used for a specific java bean
 ClassDescriptor getClassDescriptorByNodeType(java.lang.String jcrNodeType)
          Get the mapping defition to be used for a specific JCR node type
 

Method Detail

getClassDescriptorByClass

ClassDescriptor getClassDescriptorByClass(java.lang.Class clazz)
Get the mapping defition to be used for a specific java bean

Parameters:
clazz - The java bean class
Returns:
The mapping class found for the desired java bean class

getClassDescriptorByNodeType

ClassDescriptor getClassDescriptorByNodeType(java.lang.String jcrNodeType)
Get the mapping defition to be used for a specific JCR node type

Parameters:
jcrNodeType - the jcr node type
Returns:
The mapping class found for the desired java bean class


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.