Package org.jppf.utils.configuration
Class StringArrayProperty
java.lang.Object
org.jppf.utils.configuration.AbstractJPPFProperty<String[]>
org.jppf.utils.configuration.StringArrayProperty
- All Implemented Interfaces:
Serializable,JPPFProperty<String[]>
Implementation of
JPPFProperty for properties whose value is an array of Strings.- Since:
- 5.2
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStringArrayProperty(String name, String delimiter, String[] defaultValue, String... aliases) Initialize this property with the specified name and default value. -
Method Summary
Modifier and TypeMethodDescriptionConvert the specified value to a string.String[]Convert the specified value into the type of values handled by this property.Return the class object for the type of values of this property.Methods inherited from class org.jppf.utils.configuration.AbstractJPPFProperty
getAliases, getDefaultValue, getDeprecatedDoc, getDeprecatedDoc, getDocumentation, getDocumentation, getI18nBase, getName, getParameterDoc, getParameters, getPossibleValues, getShortLabel, getShortLabel, getTags, isDeprecated, resolveName, resolveName, setDeprecated, setI18nBase, setPossibleValues, toString
-
Constructor Details
-
StringArrayProperty
Initialize this property with the specified name and default value.- Parameters:
name- the name of this property.delimiter- the delimiter used to split the value into an array of strings. It MUST be a litteral string, i.e. not a regex.defaultValue- the default value of this property, used when the property is not defined.aliases- other names that may be given to this property (e.g. older names from previous versions).
-
-
Method Details
-
valueOf
Description copied from interface:JPPFPropertyConvert the specified value into the type of values handled by this property.- Parameters:
value- the property value to convert.- Returns:
- the value converted to the type of this property.
-
toString
Description copied from interface:JPPFPropertyConvert the specified value to a string.- Specified by:
toStringin interfaceJPPFProperty<String[]>- Overrides:
toStringin classAbstractJPPFProperty<String[]>- Parameters:
value- the property value to convert.- Returns:
- a String representation of the value.
-
valueType
Description copied from interface:JPPFPropertyReturn the class object for the type of values of this property.- Returns:
- a
Classinstance.
-