|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.castor.cpa.util.classresolution.command.BaseResolutionCommand
org.castor.cpa.util.classresolution.command.ClassResolutionByCDR
public class ClassResolutionByCDR
This class tries to resolve a ClassDescriptor from a package that
contains a JDOConstants.PKG_CDR_LIST_FILE file. This file defines the
mapping between a domain class and its corresponding
ClassDescriptor.
| Constructor Summary | |
|---|---|
ClassResolutionByCDR()
Constructor. |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,ClassDescriptor> |
getDescriptors(java.lang.String packageName)
Get all descriptors from the package defined by the packageName that contains the
JDOConstants.PKG_CDR_LIST_FILE file. |
ClassDescriptor |
resolve(java.lang.Class type)
Resolves a type to a ClassDescriptor by looking for
a JDOConstants.PKG_CDR_LIST_FILE file in the root directory. |
| Methods inherited from class org.castor.cpa.util.classresolution.command.BaseResolutionCommand |
|---|
addNature, getClassDescriptorResolver, getProperty, hasNature, setClassDescriptorResolver, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassResolutionByCDR()
| Method Detail |
|---|
public ClassDescriptor resolve(java.lang.Class type)
type to a ClassDescriptor by looking for
a JDOConstants.PKG_CDR_LIST_FILE file in the root directory.
type - the class to obtain the
ClassDescriptor for.
ClassDescriptor if found, null
otherwise.public java.util.Map<java.lang.String,ClassDescriptor> getDescriptors(java.lang.String packageName)
packageName that contains the
JDOConstants.PKG_CDR_LIST_FILE file.
packageName - the package to search descriptors for.
List of descriptors contained in the package.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||