public class RulesXmlAccess extends Object implements RulesAccess
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 existspublic Rules getRules()
getRules in interface RulesAccesspublic void persist(Rules newRules)
persist in interface RulesAccessCopyright © 2012–2017 CoGrOO. All rights reserved.