TagLib documentation

org.alweb.doff.util
Interface ParameterConverter


public interface ParameterConverter

Provides an interface to convert parameters into any class.

Since:
1.4.2
Author:
Alexis Toulotte
See Also:
Parameter.setConverter(ParameterConverter)

Method Summary
<T> T
convert(Parameter parameter, Class<T> type, T defaultValue)
          Converts specified parameter to specified type with a default value.
 

Method Detail

convert

<T> T convert(Parameter parameter,
              Class<T> type,
              T defaultValue)
Converts specified parameter to specified type with a default value.

Throws:
IllegalArgumentException - if type is not supported.
NullPointerException - if specified type or parameter is null.

TagLib documentation