public abstract class AbstractFixtureMapper extends Object implements FixtureMapper
FixtureMapper.
It maps target object properties from FixtureTemplate.| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
bind(Object target,
String key,
FixtureList fixtureList) |
protected abstract void |
bind(Object target,
String key,
FixtureMap fixtureMap) |
protected abstract void |
bind(Object target,
String key,
FixtureValue fixtureValue) |
FixtureConverter |
getFixtureConverter() |
<T> T |
map(FixtureMap fixtureMap,
Class<T> targetType)
map data by the given type.
|
void |
map(FixtureMap fixtureMap,
Object target)
map data to target object.
|
void |
map(Object target,
String key,
FixtureTemplate fixtureTemplate)
Set a value of the key to target object.
|
public <T> T map(FixtureMap fixtureMap, Class<T> targetType)
FixtureMappermap in interface FixtureMapperpublic void map(FixtureMap fixtureMap, Object target)
FixtureMappermap in interface FixtureMapperpublic void map(Object target, String key, FixtureTemplate fixtureTemplate)
target - the target instance.key - the key(name) of the FixturefixtureTemplate - the FixtureTemplatepublic FixtureConverter getFixtureConverter()
protected abstract void bind(Object target, String key, FixtureMap fixtureMap)
protected abstract void bind(Object target, String key, FixtureList fixtureList)
protected abstract void bind(Object target, String key, FixtureValue fixtureValue)
Copyright © 2018. All rights reserved.