|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.persist.persistors.generic.ObjectMapper
public class ObjectMapper
Used to map objects to reference numbers. This is where reference numbers are resolved. This class is used by Encog generic persistence.
| Constructor Summary | |
|---|---|
ObjectMapper()
|
|
| Method Summary | |
|---|---|
void |
addFieldMapping(int ref,
Field field,
Object target)
Add a field mapping to be resolved later. |
void |
addObjectMapping(int ref,
Object obj)
Add an object mapping to be resolved later. |
void |
clear()
Clear the map and reference list. |
void |
resolve()
Resolve all references and place the correct objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectMapper()
| Method Detail |
|---|
public void addFieldMapping(int ref,
Field field,
Object target)
ref - The reference number.field - The field to map.target - The target object that holds the field.
public void addObjectMapping(int ref,
Object obj)
ref - The object reference.obj - The object.public void clear()
public void resolve()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||