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 forClassDescriptorResolutionCommand
s.- 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 void
addPackageName(java.lang.String packageName)
Adds a package to the stringList
of package names.java.lang.String
getId()
Returns the fully qualified name of the Nature.java.util.List<java.lang.String>
getPackageNames()
Get the StringList
of package names that the currentClassDescriptorResolutionCommand
should search forClassDescriptor
s in.void
setPackageNames(java.util.List<java.lang.String> packageNames)
Set a StringList
of package names that should be searched forClassDescriptor
s.-
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 stringList
of package names.- Parameters:
packageName
- the name of the package to add.
-
setPackageNames
public void setPackageNames(java.util.List<java.lang.String> packageNames)
Set a StringList
of package names that should be searched forClassDescriptor
s.- Parameters:
packageNames
- the StringList
of package names to set.
-
getPackageNames
public java.util.List<java.lang.String> getPackageNames()
Get the StringList
of package names that the currentClassDescriptorResolutionCommand
should search forClassDescriptor
s in.- Returns:
- a String
List
of package names.
-
-