java.lang.Object | |
↳ | com.atlassian.plugin.util.validation.ValidationPattern |
Validates a pattern of rules against a dom4j node, patterned off of Schematron
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ValidationPattern.Rule | The rule as a series of tests | ||||||||||
ValidationPattern.RuleTest | A test within a rule |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Evaluates the rules against the provided node
| |||||||||||
Adds a rule to the current pattern
| |||||||||||
Adds a rule to the current pattern, assuming the current context is "."
| |||||||||||
Creates a test using the passed xpath expression
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Evaluates the rules against the provided node
node | The node to evaluate |
---|
ValidationException | If a validation error occurs. If wanting to resolve i18n keys to messages, you can access the list of errors from the exception. |
---|
Adds a rule to the current pattern
context | The xpath expression to determine one or more nodes to evaluate the rules against |
---|---|
tests | A series of tests |
Adds a rule to the current pattern, assuming the current context is "."
tests | A series of tests |
---|
Creates a test using the passed xpath expression
xpath | The test expression |
---|