public abstract class AbstractMultiplePathsOfficeFloorCommandParameter extends AbstractOfficeFloorCommandParameter
OfficeFloorCommandParameter
allowing multiple paths.Constructor and Description |
---|
AbstractMultiplePathsOfficeFloorCommandParameter(String name,
String shortName,
String pathSeparator,
String description)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(String value)
Adds a value for this parameter.
|
protected String[] |
getPaths()
Obtains the listing of paths.
|
protected static String |
transformPathsToValue(String[] paths,
String pathSeparator)
Transforms the paths into a value.
|
protected static String[] |
transformValueToPaths(String value,
String pathSeparator)
Transforms the value into its multiple paths.
|
getDescription, getName, getShortName, isRequireValue
protected String[] getPaths()
protected static String[] transformValueToPaths(String value, String pathSeparator)
value
- Value to be transformed.pathSeparator
- Path separator.protected static String transformPathsToValue(String[] paths, String pathSeparator)
paths
- Paths to be transformed.pathSeparator
- Path separator.null
if no paths.public void addValue(String value)
OfficeFloorCommandParameter
Adds a value for this parameter.
Typically this should only be invoked once however is available to allow
values to be provided multiple times (e.g. in the case of a
OfficeFloor
tag replacement).
value
- Value for this argument.OfficeFloorCommandParameter.isRequireValue()
Copyright © 2005–2016. All rights reserved.