public interface MetadataConverter<T>
| Modifier and Type | Method and Description |
|---|---|
T |
fromHttpForm(Map<String,?> parameters,
String parameterSuffix)
Fetches relevant information in a map (usually the parameters from a HttpServletRequest) to build an Object.
|
T |
fromProperties(Map<String,?> properties) |
T |
fromString(String stringValue)
Converts a String into an object of the appropriate type.
|
Map<String,?> |
toProperties(T metaValue)
Transforms the object into a properties map.
|
String |
toString(T metaValue)
Transforms the object in parameter into a simple String.
|
String toString(T metaValue)
fromString(String)metaValue - Object to convert as a StringT fromString(String stringValue)
toString(Object)stringValue - String to convert into an ObjectMap<String,?> toProperties(T metaValue)
metaValue - Object to convertT fromHttpForm(Map<String,?> parameters, String parameterSuffix)
parameters - Map containing the informationparameterSuffix - Optional suffix which can be used in HTML formsCopyright © 2023. All rights reserved.