K - the object typed K which can can be converted to the type T.T - the result type T.public interface TypeFromGeneric<K,T>
| Modifier and Type | Method and Description |
|---|---|
T |
fromType(String propertyName,
K from)
The method which converts K to the type T.
|
org.apache.commons.logging.Log |
getLogger()
Gets a logger.
|
List<String> |
getRestrictions()
Gets a detailed description of the TypeFromGeneric with any constraints that might influence the validation.
|
String |
getTypeName()
The simpel short name.
|
void |
validateConstraints(String propertyName)
Validates the constraints for the type.
|
T fromType(String propertyName, K from) throws PropertyException
propertyName - the name of the property, this is Derived Property, not the Property which supplies the import for the type conversion.from - the type KPropertyException - if the conversion could not be performed.String getTypeName()
void validateConstraints(String propertyName) throws PropertyException
propertyName - the name of the property which validates the constraints, this is Derived Property, not the Property which supplies the import for the type conversion.PropertyException - if the constraints do not hold.List<String> getRestrictions()
StringList,
StringList.asUnmodifiableList()org.apache.commons.logging.Log getLogger()