org.openbp.jaspira.propertybrowser
Class NodeStructureMgr

java.lang.Object
  extended by org.openbp.jaspira.propertybrowser.NodeStructureMgr

public final class NodeStructureMgr
extends java.lang.Object

The node structure manager keeps track of object classes and the property browser tree node structure that map to this type of object. The tree node structures are generated based on the object descriptor for the particular class.

Author:
Erich Lauterbach

Method Summary
 void clearCache()
          Clears the cache of the node structure manager.
 ObjectNode createEditorStructureFor(java.lang.Class classType)
          Determines the ObjectNode for a specfied class type and returns a copy of it.
static NodeStructureMgr getInstance()
          Gets the singleton instance for this manager
 void loadNodeStructureFor(java.lang.Class classType)
          Loads the node structure for a specfied class type and stores it in the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NodeStructureMgr getInstance()
Gets the singleton instance for this manager


createEditorStructureFor

public ObjectNode createEditorStructureFor(java.lang.Class classType)
Determines the ObjectNode for a specfied class type and returns a copy of it. The structures are resolved from the cache if possible.

Parameters:
classType - The class type for which the ObjectNode and its children are to be returned
Returns:
The ObjectNode if it could be cloned, else null

loadNodeStructureFor

public void loadNodeStructureFor(java.lang.Class classType)
Loads the node structure for a specfied class type and stores it in the cache.

Parameters:
classType - The class type for which the ObjectNode and its children are to be loaded

clearCache

public void clearCache()
Clears the cache of the node structure manager.



Copyright © 2011. All Rights Reserved.