org.openbp.cockpit.plugins.finder.test
Class SimpleMapper

java.lang.Object
  extended by org.openbp.cockpit.plugins.finder.test.SimpleMapper
All Implemented Interfaces:
DataMapper

public class SimpleMapper
extends java.lang.Object
implements DataMapper

Data mapper test class.

Author:
Baumgartner Michael

Constructor Summary
SimpleMapper()
           
 
Method Summary
 LeafNode createLeafNode()
          Create the leaf node for the data object.
 PropertyNode createPropertyNode(int level)
          Create the propertyNode of the level.
 int getLevels()
          Get the number of levels without the leafnode.
 void init(java.lang.Object leafObject)
          Initialize the mapper with a special object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMapper

public SimpleMapper()
Method Detail

init

public void init(java.lang.Object leafObject)
Description copied from interface: DataMapper
Initialize the mapper with a special object.

Specified by:
init in interface DataMapper
Parameters:
leafObject - Initialization data passed by the caller
See Also:
DataMapper.init(Object)

createLeafNode

public LeafNode createLeafNode()
Description copied from interface: DataMapper
Create the leaf node for the data object.

Specified by:
createLeafNode in interface DataMapper
Returns:
The leaf node
See Also:
DataMapper.createLeafNode()

createPropertyNode

public PropertyNode createPropertyNode(int level)
Description copied from interface: DataMapper
Create the propertyNode of the level.

Specified by:
createPropertyNode in interface DataMapper
Parameters:
level - Node level
Returns:
The property node
See Also:
DataMapper.createPropertyNode(int)

getLevels

public int getLevels()
Description copied from interface: DataMapper
Get the number of levels without the leafnode.

Specified by:
getLevels in interface DataMapper
See Also:
DataMapper.getLevels()


Copyright © 2011. All Rights Reserved.