ora.core.referenceAnalyser.impl
Class ObjectReferencesCore

java.lang.Object
  extended by ora.core.base.ElementManager
      extended by ora.core.referenceAnalyser.base.AbstractObjectAnalyser
          extended by ora.core.referenceAnalyser.impl.ObjectReferencesCore
All Implemented Interfaces:
java.io.Serializable, ElementManagerInterface, RuleAccessor, AnalyserInterface
Direct Known Subclasses:
ObjectReferencesExceptSunsUIPackages

public class ObjectReferencesCore
extends AbstractObjectAnalyser
implements AnalyserInterface

Core implementation of the AnalyserInterface.
It analyses recursively the object model of the given object(s) using specific rules defined in CoreRules.rls
Every other objects to be analysed will be analysed based on their content.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ora.core.base.ElementManager
controller
 
Constructor Summary
ObjectReferencesCore()
          Default constructor
ObjectReferencesCore(java.lang.String name)
          Constructor
ObjectReferencesCore(java.lang.String name, java.net.URL rules)
          Constructor
 
Method Summary
 java.lang.Object _analyse(java.lang.Object target, java.lang.Object source)
           
 java.lang.Object _getElementForObject(java.lang.Object obj)
           
 void _setMapping(java.lang.Object source, java.lang.Object target)
           
 GuiElement addAndAnalyseRootObject(java.lang.Object obj)
          Basic method implementation for adding root object and analysing recursivly dependend on the boolean object
 GuiElement addAndAnalyseRootObject(java.lang.Object obj, boolean analyseNow)
          Basic method implementation for adding root object and analysing recursively depended on the boolean object
 boolean isCustomizable()
          Method to define whether analyser is instanceof ObjectReferencesCustomized
 void reload()
          Method to reload the references starting from the given roots Should be implemented synchronised to avoid parallel requests
 
Methods inherited from class ora.core.referenceAnalyser.base.AbstractObjectAnalyser
getAnalyserRules, getInstance, getOrCreateInstance, getOrCreateInstance, setAnalyserRules
 
Methods inherited from class ora.core.base.ElementManager
getAllElements, getClassesList, getManagerName, getReloadableData, getRoots, getState, getTimeStamp, hasController, load, registerElementController, reloadable, reset, save, unRegisterElementController
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ora.core.referenceAnalyser.interfaces.AnalyserInterface
getAnalyserRules, setAnalyserRules
 
Methods inherited from interface ora.core.base.ElementManagerInterface
getAllElements, getClassesList, getManagerName, getReloadableData, getRoots, getState, getTimeStamp, hasController, load, registerElementController, reloadable, reset, save, unRegisterElementController
 

Constructor Detail

ObjectReferencesCore

public ObjectReferencesCore()
                     throws java.lang.Exception
Default constructor

Throws:
java.lang.Exception

ObjectReferencesCore

public ObjectReferencesCore(java.lang.String name)
                     throws java.lang.Exception
Constructor

Throws:
java.lang.Exception

ObjectReferencesCore

public ObjectReferencesCore(java.lang.String name,
                            java.net.URL rules)
                     throws java.lang.Exception
Constructor

Throws:
java.lang.Exception
Method Detail

addAndAnalyseRootObject

public GuiElement addAndAnalyseRootObject(java.lang.Object obj)
                                   throws java.lang.Exception
Basic method implementation for adding root object and analysing recursivly dependend on the boolean object

Specified by:
addAndAnalyseRootObject in interface AnalyserInterface
Parameters:
obj - to be analysed
Returns:
analysed rootobject
Throws:
java.lang.Exception
See Also:
AnalyserInterface.addAndAnalyseRootObject(java.lang.Object)

addAndAnalyseRootObject

public GuiElement addAndAnalyseRootObject(java.lang.Object obj,
                                          boolean analyseNow)
                                   throws java.lang.Exception
Basic method implementation for adding root object and analysing recursively depended on the boolean object

Specified by:
addAndAnalyseRootObject in interface AnalyserInterface
Specified by:
addAndAnalyseRootObject in class AbstractObjectAnalyser
Parameters:
obj - to be analysed
analyseNow - indicator to analyse now
Returns:
Analysed root object as GUIElement
Throws:
java.lang.Exception
See Also:
AnalyserInterface.addAndAnalyseRootObject(java.lang.Object)

reload

public void reload()
            throws java.lang.Exception
Description copied from interface: AnalyserInterface
Method to reload the references starting from the given roots Should be implemented synchronised to avoid parallel requests

Specified by:
reload in interface AnalyserInterface
Throws:
java.lang.Exception

isCustomizable

public boolean isCustomizable()
Description copied from interface: AnalyserInterface
Method to define whether analyser is instanceof ObjectReferencesCustomized

Specified by:
isCustomizable in interface AnalyserInterface

_setMapping

public void _setMapping(java.lang.Object source,
                        java.lang.Object target)
Specified by:
_setMapping in interface RuleAccessor

_analyse

public java.lang.Object _analyse(java.lang.Object target,
                                 java.lang.Object source)
                          throws java.lang.Exception
Specified by:
_analyse in interface RuleAccessor
Throws:
java.lang.Exception

_getElementForObject

public java.lang.Object _getElementForObject(java.lang.Object obj)
                                      throws java.lang.Exception
Specified by:
_getElementForObject in interface RuleAccessor
Throws:
java.lang.Exception