public class ConfigurationDefinition extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigurationDefinition.Type
The available types for configuration fields
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MULIPLICITY_UNLIMITED
Indicator for an unlimited multiplicity
|
| Constructor and Description |
|---|
ConfigurationDefinition(String id,
String name,
ConfigurationDefinition.Type type)
Constructor requiring the minimum of definitions
|
ConfigurationDefinition(String id,
String name,
ConfigurationDefinition.Type type,
String defaultValue)
Constructor requiring the basic information and the default value
|
ConfigurationDefinition(String id,
String name,
ConfigurationDefinition.Type type,
String defaultValue,
boolean required)
Constructor requiring the basic information and the default value
|
ConfigurationDefinition(String id,
String name,
ConfigurationDefinition.Type type,
String defaultValue,
List<String> possibleValues,
int multiplicity,
boolean required)
Constructor requiring the complete set of definitions
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue() |
String |
getId() |
int |
getMultiplicity() |
String |
getName() |
List<String> |
getPossibleValues() |
ConfigurationDefinition.Type |
getType() |
boolean |
isRequired() |
void |
setDefaultValue(String defaultValue) |
void |
setId(String id) |
void |
setMultiplicity(int multiplicity) |
void |
setName(String name) |
void |
setPossibleValues(List<String> possibleValues) |
void |
setRequired(boolean required) |
void |
setType(ConfigurationDefinition.Type type) |
public static int MULIPLICITY_UNLIMITED
public ConfigurationDefinition(String id, String name, ConfigurationDefinition.Type type, String defaultValue, List<String> possibleValues, int multiplicity, boolean required)
id - The identifier for the parametername - The name of the parametertype - The type of the parameterdefaultValue - The defaultValuepossibleValues - The possible values for this configurationmultiplicity - The maximum number of possibleValues for this configurationrequired - Flag whether this configuration is requiredpublic ConfigurationDefinition(String id, String name, ConfigurationDefinition.Type type, String defaultValue)
id - The identifier for the parametername - The name of the parametertype - The type of the parameterdefaultValue - The defaultValuepublic ConfigurationDefinition(String id, String name, ConfigurationDefinition.Type type, String defaultValue, boolean required)
id - The identifier for the parametername - The name of the parametertype - The type of the parameterdefaultValue - The defaultValuerequired - Flag whether this configuration is requiredpublic ConfigurationDefinition(String id, String name, ConfigurationDefinition.Type type)
id - The identifier for the parametername - The name of the parametertype - The type of the parameterpublic String getId()
public void setId(String id)
id - the id to setpublic String getName()
public void setName(String name)
name - the name to setpublic ConfigurationDefinition.Type getType()
public void setType(ConfigurationDefinition.Type type)
type - the type to setpublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - the defaultValue to setpublic void setPossibleValues(List<String> possibleValues)
possibleValues - the possibleValues to setpublic void setMultiplicity(int multiplicity)
multiplicity - the multiplicity to setpublic int getMultiplicity()
public void setRequired(boolean required)
required - the required to setpublic boolean isRequired()