public class ConverterWrapper<FROM_TYPE> extends java.lang.Object implements IConverter<FROM_TYPE>
Constructor and Description |
---|
ConverterWrapper(IConverter<FROM_TYPE> original) |
Modifier and Type | Method and Description |
---|---|
FROM_TYPE |
convertToObject(java.lang.String string)
Converts an string input to an object.
|
java.lang.String |
convertToString(FROM_TYPE value)
Converts the value to an string representation
|
java.lang.String |
getAcceptingRegExp()
Gets the regular expression that describes the valid inputs.
|
java.lang.String |
getDescription(FROM_TYPE value)
Gets an description for an value
|
IInputVerifier |
getInputVerifier()
Gets an input verifier that verifies the input.
|
ITextMask |
getMask()
Gets a mask if the input should be masked.
|
IValidator<java.lang.String> |
getStringValidator()
Gets a validator that will be used to validate the string input.
|
public ConverterWrapper(IConverter<FROM_TYPE> original)
public java.lang.String convertToString(FROM_TYPE value)
IObjectStringConverter
convertToString
in interface IObjectStringConverter<FROM_TYPE>
value
- The value to convertpublic FROM_TYPE convertToObject(java.lang.String string)
IStringObjectConverter
convertToObject
in interface IStringObjectConverter<FROM_TYPE>
string
- The string to convert.public java.lang.String getDescription(FROM_TYPE value)
IObjectStringConverter
getDescription
in interface IObjectStringConverter<FROM_TYPE>
value
- the value to get the description forpublic IValidator<java.lang.String> getStringValidator()
IStringObjectConverter
getStringValidator
in interface IStringObjectConverter<FROM_TYPE>
public IInputVerifier getInputVerifier()
IStringObjectConverter
IInputVerifier
's
if possible because SPI implementations that use 'AJAX' can implement client side verification easier.getInputVerifier
in interface IStringObjectConverter<FROM_TYPE>
public java.lang.String getAcceptingRegExp()
IStringObjectConverter
IInputVerifier
's
if possible because SPI implementations that uses e.g 'AJAX' can implement client side verification easier.
REMARK: Implementors must not assume that the regular expression will be used on all platformsgetAcceptingRegExp
in interface IStringObjectConverter<FROM_TYPE>
public ITextMask getMask()
IStringObjectConverter
getMask
in interface IStringObjectConverter<FROM_TYPE>
Siehe auch Jowidgets Nutzerhandbuch