Class PatternTypeHandler
java.lang.Object
ch.tocco.nice2.model.base.unmarshal.types.PatternTypeHandler
- All Implemented Interfaces:
TypeHandler
Allows to directly map a string regular expession to a compiled Pattern.
The auto-validation of the regex was the reason for adding this type handler.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PatternTypeHandler
public PatternTypeHandler()
-
-
Method Details
-
stringToType
- Specified by:
stringToType
in interfaceTypeHandler
- Throws:
InvalidValueException
-
getDefault
- Specified by:
getDefault
in interfaceTypeHandler
-