public class ResourceRefRule extends StringTypeRule
| Constructor and Description |
|---|
ResourceRefRule() |
| Modifier and Type | Method and Description |
|---|---|
Node |
apply(Node node)
Applies the rule to the node using the following criteria
- if rule does not match returns an ErrorNode and stops processing
- if rule matches, applies rules to children
- if rule contains a NodeFactory, returns the result of it
- else returns node
Only structure rules (
ObjectRule, ArrayRule, KeyValueRule) replace child nodes. |
boolean |
matches(Node node)
Check if the current rule matches the specified node
|
getDescription, getSuggestionscleanFactory, createNodeUsingFactory, getChildren, getFactory, getSuggestions, named, ruleName, then, then, toStringpublic Node apply(@Nonnull Node node)
RuleObjectRule, ArrayRule, KeyValueRule) replace child nodes.apply in class AbstractTypeRulenode - The current nodepublic boolean matches(@Nonnull Node node)
Rulematches in class StringTypeRulenode - The node to check withCopyright © 2017. All rights reserved.