Package org.kie.internal.builder.conf
Class DefaultPackageNameOption
- java.lang.Object
-
- org.kie.internal.builder.conf.DefaultPackageNameOption
-
- All Implemented Interfaces:
Serializable
,org.kie.api.conf.Option
,KnowledgeBuilderOption
,SingleValueKnowledgeBuilderOption
public class DefaultPackageNameOption extends Object implements SingleValueKnowledgeBuilderOption
A class for the default package name configuration.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_NAME
The property name for the default package name
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static DefaultPackageNameOption
get(String packageName)
This is a factory method for this DefaultPackageName configuration.String
getPackageName()
Returns the name of the package configured as defaultString
getPropertyName()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
PROPERTY_NAME
public static final String PROPERTY_NAME
The property name for the default package name- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public static DefaultPackageNameOption get(String packageName)
This is a factory method for this DefaultPackageName configuration. The factory method is a best practice for the case where the actual object construction is changed in the future.- Parameters:
packageName
- the name of the package to be configured as default- Returns:
- the actual type safe default package name configuration.
-
getPropertyName
public String getPropertyName()
- Specified by:
getPropertyName
in interfaceorg.kie.api.conf.Option
-
getPackageName
public String getPackageName()
Returns the name of the package configured as default- Returns:
-
-