|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webwork.parameters.ShortConverter
public class ShortConverter
A implementation of ParameterConverter
for Short
objects
Constructor Summary | |
---|---|
ShortConverter()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShortConverter()
Method Detail |
---|
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 object
IllegalArgumentException
- if the value cant be convertedprotected boolean isEmpty(String parameterValue)
parameterValue
- the parameter value
protected void checkPrimitiveInput(String parameterValue, Class paramType, String bundleKey)
parameterValue
- the value in playparamType
- the type of parameterbundleKey
- the webwork1 bundle key to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |