public interface SyntaxValidator
| Modifier and Type | Method and Description |
|---|---|
void |
addValidationRule(ValidationRule rule)
Adds a new validation rule to the list of rules this syntax validator obeys.
|
String |
getSyntax() |
boolean |
isValid(String feature,
RichTextArea textArea)
Verifies if a specific feature of the editor should be enabled, considering the current list of validation rules
and the current state of the given text area.
|
void |
removeValidationRule(ValidationRule rule)
Removes the specified rule from the list of validation rules this syntax validator obeys.
|
void addValidationRule(ValidationRule rule)
rule - The validation rule to be added.boolean isValid(String feature, RichTextArea textArea)
feature - The feature to be tested.textArea - The text area whose current state should be considered.void removeValidationRule(ValidationRule rule)
rule - The validation rule to be removed.String getSyntax()
Copyright © 2004–2014 XWiki. All rights reserved.