|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Type - the type of object to convert to from a map.public interface Converter<Type>
A generic interface responsible for converting a Map object into a user defined object.
The Map object is of type Map<String,List<Map<String,Object>>>
It can be read as Map of MethodName as KEY and List of Map of MethodAttributes/MethodAttributeValues as Value.
Users should normally extend AbstractConverter instead of implementing this interface as the abstract converter
has implementation to methods convertTo() and instanceOfType()
For an example of writing a converter, look at :
https://github.com/EaseTech/easytest-core/blob/master/src/test/java/org/easetech/easytest/example/ItemConverter.java
| Method Summary | |
|---|---|
Type |
convert(Map<String,Object> convertFrom)
Convert the Map into a user defined object. |
Class<Type> |
convertTo()
The class of the generic type argument to which the data should be converted to. |
Type |
instanceOfType()
Method responsible for returning an instance of the provided Generic Type argument. |
| Method Detail |
|---|
Class<Type> convertTo()
Type convert(Map<String,Object> convertFrom)
convertFrom - the Map to convert from
convertTo() class.Type instanceOfType()
AbstractConverter.instanceOfType() methods Javadoc for details on the default implementation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||