public class LongArrayConverter extends Object
Constructor and Description |
---|
LongArrayConverter() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkPrimitiveInput(String parameterValue,
Class paramType,
String bundleKey)
Throws a PropertyEditorException just like webwork1 when a value is a primitive AND the string is empty
|
Object |
convertParameter(String[] parameterValues,
Class paramType)
This is called to perform the conversion.
|
protected boolean |
isEmpty(String parameterValue)
The same test that webwork1 uses for null-able Longs/Integers/Shorts/Bytes
|
public Object convertParameter(String[] parameterValues, Class paramType) throws IllegalArgumentException
ParameterConverter
parameterValues
- a String[] that is never null and at least length 1 or more.paramType
- the type of the target objectIllegalArgumentException
- if the value cant be convertedprotected boolean isEmpty(String parameterValue)
parameterValue
- the parameter valueprotected void checkPrimitiveInput(String parameterValue, Class paramType, String bundleKey)
parameterValue
- the value in playparamType
- the type of parameterbundleKey
- the webwork1 bundle key to useCopyright © 2002-2021 Atlassian. All Rights Reserved.