public class RuleParser extends Object
RuleValidationParser
parses a validation rule definition file. This parser will generate the Rules in the repository and return the
array of generated rules.Constructor and Description |
---|
RuleParser(File rulesSchemaFile,
Repository repo,
Repository.UnitOfWork transaction)
Constructs a parser.
|
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getErrors() |
Collection<String> |
getFatalErrors() |
Collection<String> |
getInfos() |
Collection<String> |
getWarnings() |
Rule[] |
parse(File rulesFile) |
public RuleParser(File rulesSchemaFile, Repository repo, Repository.UnitOfWork transaction) throws Exception
rulesSchemaFile
- the rules schema filerepo
- the repository (cannot be null
)transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)Exception
- if there were problems with the rules schema filepublic Collection<String> getErrors()
null
if parse has not been calledpublic Collection<String> getFatalErrors()
null
if parse has not been calledpublic Collection<String> getInfos()
null
if parse has not been calledpublic Collection<String> getWarnings()
null
if parse has not been calledCopyright © 2013–2019. All rights reserved.