|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cogroo.tools.checker.rules.applier.RulesXmlAccess
public class RulesXmlAccess
Class that provides access to the rules read from a xml file.
Method Summary | |
---|---|
static RulesAccess |
getInstance()
|
static RulesAccess |
getInstance(String serializedRule)
|
Rule |
getRule(int id)
Gets a rule by its id. |
Rules |
getRules()
|
void |
persist(Rules newRules)
|
void |
validate()
Checks the xml against the xsd. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RulesAccess getInstance()
public static RulesAccess getInstance(String serializedRule)
public void validate()
public Rule getRule(int id)
id
- the id of the rulerereadRules
- states if the rules must be read from the file or to reuse the
in-memory representation, if it already exists
public Rules getRules()
getRules
in interface RulesAccess
public void persist(Rules newRules)
persist
in interface RulesAccess
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |