ora.core.base
Class ElementManager

java.lang.Object
  extended by ora.core.base.ElementManager
All Implemented Interfaces:
java.io.Serializable, ElementManagerInterface
Direct Known Subclasses:
AbstractObjectAnalyser, ElementManager_businessDelegate, LegendElements, XMLElementManager

public class ElementManager
extends java.lang.Object
implements ElementManagerInterface, java.io.Serializable

Container component for holding analysed objects and managing them - the so called objectreferencemodel

See Also:
Serialized Form

Field Summary
 ElementController controller
           
 
Constructor Summary
ElementManager()
          Default constructor
 
Method Summary
 java.util.ArrayList getAllElements()
          returns complete list of elements
 java.util.HashMap getClassesList()
          Returns hashmap with class to element mapping (1-N)
 java.lang.String getManagerName()
           
 ReloadableData getReloadableData()
          Contains data that can be used for reload purpose
 java.util.ArrayList getRoots()
          Get number of roots
 int getState()
           
 java.lang.String getTimeStamp()
           
 boolean hasController()
           
 void load(java.io.File file, PersistenceConfiguration conf)
          By default this method tries first to load the binary data, once this fails it will load data from xml.
 void registerElementController(ElementController controller)
           
 boolean reloadable()
          If original source object is available you can reload but not from fileload
 void reset()
          reset lists and others
 void save(java.io.File file, PersistenceConfiguration conf)
          Save Referencemodel to file as per type
 void unRegisterElementController(ElementController controller)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

public transient ElementController controller
Constructor Detail

ElementManager

public ElementManager()
Default constructor

Method Detail

getRoots

public java.util.ArrayList getRoots()
Description copied from interface: ElementManagerInterface
Get number of roots

Specified by:
getRoots in interface ElementManagerInterface

load

public void load(java.io.File file,
                 PersistenceConfiguration conf)
          throws java.lang.Exception
By default this method tries first to load the binary data, once this fails it will load data from xml.

Specified by:
load in interface ElementManagerInterface
Throws:
java.lang.Exception

save

public void save(java.io.File file,
                 PersistenceConfiguration conf)
          throws java.lang.Exception
Description copied from interface: ElementManagerInterface
Save Referencemodel to file as per type

Specified by:
save in interface ElementManagerInterface
Throws:
java.lang.Exception

getClassesList

public java.util.HashMap getClassesList()
Description copied from interface: ElementManagerInterface
Returns hashmap with class to element mapping (1-N)

Specified by:
getClassesList in interface ElementManagerInterface

getAllElements

public java.util.ArrayList getAllElements()
Description copied from interface: ElementManagerInterface
returns complete list of elements

Specified by:
getAllElements in interface ElementManagerInterface

reloadable

public boolean reloadable()
Description copied from interface: ElementManagerInterface
If original source object is available you can reload but not from fileload

Specified by:
reloadable in interface ElementManagerInterface

reset

public void reset()
Description copied from interface: ElementManagerInterface
reset lists and others

Specified by:
reset in interface ElementManagerInterface

getManagerName

public java.lang.String getManagerName()
Specified by:
getManagerName in interface ElementManagerInterface

registerElementController

public void registerElementController(ElementController controller)
                               throws java.lang.IllegalAccessException
Specified by:
registerElementController in interface ElementManagerInterface
Throws:
java.lang.IllegalAccessException

unRegisterElementController

public void unRegisterElementController(ElementController controller)
Specified by:
unRegisterElementController in interface ElementManagerInterface

hasController

public boolean hasController()
Specified by:
hasController in interface ElementManagerInterface

getState

public int getState()
Specified by:
getState in interface ElementManagerInterface

getTimeStamp

public java.lang.String getTimeStamp()
Specified by:
getTimeStamp in interface ElementManagerInterface

getReloadableData

public ReloadableData getReloadableData()
Contains data that can be used for reload purpose

Specified by:
getReloadableData in interface ElementManagerInterface
Returns:
ReloadableData