|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectodml.util.Mapper
public class Mapper
The Mapper
controls the mapping procedure. Mapping information can be given for Property
and
Section
elements and is used to transform from one, custom, organization of the metadata structure, to
another, the odml standard or any else, structure. Rough sketch of the mapping algorithm: 1: recursively cycle
through all sections and apply section mappings. 2a: recursively cycle through all sections, starting at root, and
try apply property mappings. 2b: if no mapping provided for a property, just add to the section the property's parent
section was mapped into. 2c: if mapping provided check for destination section type. if provided and matching the
parent section's destination, just add. 2d: if property maps to a different type of section than the parent section's
destination, check if
Constructor Summary | |
---|---|
Mapper(Section original)
Constructor. |
Method Summary | |
---|---|
Section |
map()
Apply the mapping information and return a converted tree. |
void |
mapProperty(Property p)
Maps a certain property. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mapper(Section original)
original
- A Section
that contains mapping information.Method Detail |
---|
public Section map()
Section
the converted tree.public void mapProperty(Property p)
p
- Property
the Property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |