ora.core.handler
Class AnalyserRules
java.lang.Object
ora.core.handler.AnalyserRules
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Externalizable
public class AnalyserRules
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable, Externalizable
- See Also:
- Serialized Form
Method Summary |
void |
clearCaches()
|
java.lang.Object |
clone()
|
Rule |
determinateSpecificRule(java.lang.Class<?> clazz,
java.lang.Object obj)
Here the determination whether the class of an object should be analysed
specific takes place -1 means false |
void |
fromExt(java.lang.String content,
java.lang.String lb)
|
java.lang.String |
getName()
|
int |
getNumberActiveRules()
|
Rule[] |
getRules()
|
java.lang.String |
getStat()
|
void |
setName(java.lang.String name)
|
Rule |
setRule(int type,
java.lang.String condition,
java.lang.String handlerClassName,
int pos,
java.lang.Boolean activate,
boolean init)
This method adds or changes rule |
Rule |
setRule(Rule rule,
int pos,
java.lang.Boolean activate,
boolean init)
This method adds or changes rule |
void |
setRules(Rule[] rules)
|
java.lang.String |
toExt(java.lang.String lb)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rules
public Rule[] rules
fu
public FieldUtil fu
ra
public transient RuleAccessor ra
AnalyserRules
public AnalyserRules(java.net.URL rlsURL,
RuleAccessor access,
FieldUtil fu)
throws java.lang.Exception
- Throws:
java.lang.Exception
AnalyserRules
public AnalyserRules(AnalyserRules analyser,
RuleAccessor access,
FieldUtil fu)
throws java.lang.Exception
- This constructor is used by the analysers
- Parameters:
analyser
- access
- fu
-
- Throws:
java.lang.Exception
AnalyserRules
public AnalyserRules(java.lang.String content)
toExt
public java.lang.String toExt(java.lang.String lb)
- Specified by:
toExt
in interface Externalizable
fromExt
public void fromExt(java.lang.String content,
java.lang.String lb)
- Specified by:
fromExt
in interface Externalizable
setRule
public Rule setRule(int type,
java.lang.String condition,
java.lang.String handlerClassName,
int pos,
java.lang.Boolean activate,
boolean init)
throws java.lang.Exception
- This method adds or changes rule
- Parameters:
type
- used to define rulecondition
- used to define rulehandlerClassName
- used to define rulepos
- would be used for a new role to set the priorityactivate
- indicated whether rule should be activeinit
- indicated whether rule should be initialised/activated
- Throws:
java.lang.Exception
setRule
public Rule setRule(Rule rule,
int pos,
java.lang.Boolean activate,
boolean init)
throws java.lang.Exception
- This method adds or changes rule
- Parameters:
rule
- concerned rulepos
- would be used for a new role to set the priorityactivate
- indicated whether rule should be activeinit
- indicated whether rule should be initialised/activated
- Throws:
java.lang.Exception
getStat
public java.lang.String getStat()
determinateSpecificRule
public Rule determinateSpecificRule(java.lang.Class<?> clazz,
java.lang.Object obj)
throws SpecificationException
- Here the determination whether the class of an object should be analysed
specific takes place -1 means false
- Throws:
SpecificationException
getNumberActiveRules
public int getNumberActiveRules()
getRules
public Rule[] getRules()
setRules
public void setRules(Rule[] rules)
clearCaches
public void clearCaches()
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)