org.apache.portals.graffito.jcr.mapper.model
Class MappingDescriptor

java.lang.Object
  extended by org.apache.portals.graffito.jcr.mapper.model.MappingDescriptor

public class MappingDescriptor
extends java.lang.Object

This class match to the complete xml mapping files. it contains mainly a collection of ClassDescriptor

Version:
$Id: Exp $
Author:
Lombart Christophe

Constructor Summary
MappingDescriptor()
           
 
Method Summary
 void addClassDescriptor(ClassDescriptor classDescriptor)
          Add a new ClassDescriptor
 ClassDescriptor getClassDescriptorByName(java.lang.String className)
          Get the classdescriptor to used for the class
 ClassDescriptor getClassDescriptorByNodeType(java.lang.String nodeType)
           
 java.util.Map getClassDescriptorsByClassName()
          Get all class descriptors by class name
 java.util.Map getClassDescriptorsByNodeType()
          Get all class descriptors by class name
 Mapper getMapper()
           
 void setMapper(Mapper parentMapper)
           
 void setPackage(java.lang.String pckgName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingDescriptor

public MappingDescriptor()
Method Detail

setPackage

public void setPackage(java.lang.String pckgName)

addClassDescriptor

public void addClassDescriptor(ClassDescriptor classDescriptor)
Add a new ClassDescriptor

Parameters:
classDescriptor - The class descriptor to add

getClassDescriptorByName

public ClassDescriptor getClassDescriptorByName(java.lang.String className)
Get the classdescriptor to used for the class

Parameters:
className - the class name
Returns:
the class descriptor found or null

getClassDescriptorByNodeType

public ClassDescriptor getClassDescriptorByNodeType(java.lang.String nodeType)

getClassDescriptorsByClassName

public java.util.Map getClassDescriptorsByClassName()
Get all class descriptors by class name

Returns:
all class descriptors found

getClassDescriptorsByNodeType

public java.util.Map getClassDescriptorsByNodeType()
Get all class descriptors by class name

Returns:
all class descriptors found

getMapper

public Mapper getMapper()

setMapper

public void setMapper(Mapper parentMapper)


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