Class AbstractParam<V>
- java.lang.Object
-
- fr.paris.lutece.plugins.rest.service.param.AbstractParam<V>
-
- Type Parameters:
V- the real object class
public abstract class AbstractParam<V> extends java.lang.ObjectProvides simple param parsing. Implementations have to overrideparse(String)to transform the String to a concrete V object.
-
-
Constructor Summary
Constructors Constructor Description AbstractParam(java.lang.String strParam)Builds this param and callsparse(String)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetOriginalParam()Gets the original string paramVgetValue()The value of the stringgetOriginalParam()java.lang.StringtoString()
-
-
-
Constructor Detail
-
AbstractParam
public AbstractParam(java.lang.String strParam) throws javax.ws.rs.WebApplicationExceptionBuilds this param and callsparse(String)- Parameters:
strParam- the param to parse- Throws:
javax.ws.rs.WebApplicationException- if an exception occured, with preconfigured messagegetErrorMessage(String, Throwable)
-
-
Method Detail
-
getValue
public V getValue()
The value of the stringgetOriginalParam()- Returns:
- the object value
-
getOriginalParam
public java.lang.String getOriginalParam()
Gets the original string param- Returns:
- the string
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-