public class ClassResolutionByCDR extends BaseResolutionCommand
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 and Description |
|---|
ClassResolutionByCDR()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,ClassDescriptor> |
getDescriptors(String packageName)
Get all descriptors from the package defined by the
packageName that contains the
JDOConstants.PKG_CDR_LIST_FILE file. |
ClassDescriptor |
resolve(Class type)
Resolves a
type to a ClassDescriptor by looking for
a JDOConstants.PKG_CDR_LIST_FILE file in the root directory. |
addNature, getClassDescriptorResolver, getProperty, hasNature, setClassDescriptorResolver, setPropertypublic ClassDescriptor resolve(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 Map<String,ClassDescriptor> getDescriptors(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.Copyright © 2014. All rights reserved.