public interface RepresentationRestorer
For example, a Group handles restoration of its group elements.
This way the group does not have to explicitly be stored in each group element instance.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
restoreFromRepresentation(java.lang.reflect.Type type,
Representation repr)
Takes a representation and creates an object of the given type from it if the type is supported by the restorer.
|
java.lang.Object restoreFromRepresentation(java.lang.reflect.Type type,
Representation repr)
throws java.lang.IllegalArgumentException
type - tells the restorer which type the restored object should haverepr - the representation to restore the object fromjava.lang.IllegalArgumentException - if the restorer is unable to handle the given type