ora.core.xmlAnalyser
Class XMLElementManager

java.lang.Object
  extended by ora.core.base.ElementManager
      extended by ora.core.xmlAnalyser.XMLElementManager
All Implemented Interfaces:
java.io.Serializable, ElementManagerInterface

public class XMLElementManager
extends ElementManager
implements ElementManagerInterface

Author:
Kristian Martin This class is able to parse any xml documents to ora-format to be visualized as entities. There is no Warranty
See Also:
Serialized Form

Nested Class Summary
 class XMLElementManager.XMLDocHandler
           
 
Field Summary
 
Fields inherited from class ora.core.base.ElementManager
controller
 
Constructor Summary
XMLElementManager(java.io.File file)
           
 
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()
           
 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 miscLoad(java.io.File file, PersistenceConfiguration conf)
           
 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 ora.core.base.ElementManager
getReloadableData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ora.core.base.ElementManagerInterface
getReloadableData
 

Constructor Detail

XMLElementManager

public XMLElementManager(java.io.File file)
Method Detail

getAllElements

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

Specified by:
getAllElements in interface ElementManagerInterface
Overrides:
getAllElements in class ElementManager

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
Overrides:
getClassesList in class ElementManager

getManagerName

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

getRoots

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

Specified by:
getRoots in interface ElementManagerInterface
Overrides:
getRoots in class ElementManager

getTimeStamp

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

hasController

public boolean hasController()
Specified by:
hasController in interface ElementManagerInterface
Overrides:
hasController in class ElementManager

getState

public int getState()
Specified by:
getState in interface ElementManagerInterface
Overrides:
getState in class ElementManager

miscLoad

public void miscLoad(java.io.File file,
                     PersistenceConfiguration conf)
              throws java.lang.Exception
Throws:
java.lang.Exception

load

public void load(java.io.File file,
                 PersistenceConfiguration conf)
          throws java.lang.Exception
Description copied from class: ElementManager
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
Overrides:
load in class ElementManager
Throws:
java.lang.Exception

registerElementController

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

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
Overrides:
reloadable in class ElementManager

reset

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

Specified by:
reset in interface ElementManagerInterface
Overrides:
reset in class ElementManager

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
Overrides:
save in class ElementManager
Throws:
java.lang.Exception

unRegisterElementController

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