Class PackageBasedCDRResolutionNature
- java.lang.Object
-
- org.castor.core.nature.BaseNature
-
- org.castor.cpa.util.classresolution.nature.PackageBasedCDRResolutionNature
-
- All Implemented Interfaces:
Nature
public class PackageBasedCDRResolutionNature extends BaseNature
This class provides a view on a additional properties forClassDescriptorResolutionCommands.- Since:
- 1.2.1
- Author:
- Sebastian Gabmeyer
-
-
Constructor Summary
Constructors Constructor Description PackageBasedCDRResolutionNature(PropertyHolder holder)The constructor takes aPropertyHolder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPackageName(java.lang.String packageName)Adds a package to the stringListof package names.java.lang.StringgetId()Returns the fully qualified name of the Nature.java.util.List<java.lang.String>getPackageNames()Get the StringListof package names that the currentClassDescriptorResolutionCommandshould search forClassDescriptors in.voidsetPackageNames(java.util.List<java.lang.String> packageNames)Set a StringListof package names that should be searched forClassDescriptors.-
Methods inherited from class org.castor.core.nature.BaseNature
getBooleanPropertyDefaultFalse, getHolder, getProperty, getPropertyAsList, getPropertyAsMap, setProperty
-
-
-
-
Constructor Detail
-
PackageBasedCDRResolutionNature
public PackageBasedCDRResolutionNature(PropertyHolder holder)
The constructor takes aPropertyHolder.- Parameters:
holder- the container to place/read the properties in/from.
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns the fully qualified name of the Nature.- Returns:
- qualified name of the nature.
-
addPackageName
public void addPackageName(java.lang.String packageName)
Adds a package to the stringListof package names.- Parameters:
packageName- the name of the package to add.
-
setPackageNames
public void setPackageNames(java.util.List<java.lang.String> packageNames)
Set a StringListof package names that should be searched forClassDescriptors.- Parameters:
packageNames- the StringListof package names to set.
-
getPackageNames
public java.util.List<java.lang.String> getPackageNames()
Get the StringListof package names that the currentClassDescriptorResolutionCommandshould search forClassDescriptors in.- Returns:
- a String
Listof package names.
-
-