public class ParametrizedNodeReferenceRule extends ObjectRule
| Constructor and Description |
|---|
ParametrizedNodeReferenceRule(String referenceKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
protected Node |
getResult(Node node) |
List<Suggestion> |
getSuggestions(List<Node> pathToRoot,
RamlParsingContext context)
Returns the list of suggestions after navigating through the path
|
List<Suggestion> |
getSuggestions(Node node,
RamlParsingContext context)
Returns the suggestions of this specific rule
|
boolean |
matches(Node node)
Check if the current rule matches the specified node
|
apply, merge, setAllowsAdditionalProperties, setStrict, then, then, with, withcreateNodeUsingFactorypublic ParametrizedNodeReferenceRule(String referenceKey)
public boolean matches(@Nonnull Node node)
Rulematches in class ObjectRulenode - The node to check withpublic List<Suggestion> getSuggestions(List<Node> pathToRoot, RamlParsingContext context)
RulegetSuggestions in class ObjectRulepathToRoot - The path of nodes to get of the node from where we want the suggestionscontext - The parse context@Nonnull public List<Suggestion> getSuggestions(Node node, RamlParsingContext context)
RulegetSuggestions in class ObjectRulenode - The nodecontext - The parse contextprotected Node getResult(Node node)
getResult in class ObjectRulepublic String getDescription()
getDescription in class ObjectRuleCopyright © 2016. All rights reserved.