public class ObjectMapper.BoundInstance extends Object
Modifier | Constructor and Description |
---|---|
protected |
BoundInstance(T boundInstance) |
Modifier and Type | Method and Description |
---|---|
T |
getInstance()
Return the instance this mapper is bound to.
|
T |
populate(ConfigurationNode source)
Populate the annotated fields in a pre-created object
|
void |
serialize(ConfigurationNode target)
Serialize the data contained in annotated fields to the configuration node.
|
protected BoundInstance(T boundInstance)
public T populate(ConfigurationNode source) throws ObjectMappingException
source
- The source to get data fromObjectMappingException
- If an error occurs while populating datapublic void serialize(ConfigurationNode target) throws ObjectMappingException
target
- The target node to serialize toObjectMappingException
- if serialization was not possible due to some error.public T getInstance()
Copyright © 2014–2017. All rights reserved.