public class DiscriminatorBasedRule extends Rule
| Constructor and Description |
|---|
DiscriminatorBasedRule(TypeToRuleVisitor typeToRuleVisitor,
Node rootElement,
String discriminatorProperty) |
| Modifier and Type | Method and Description |
|---|---|
Node |
apply(Node node) |
protected Rule |
findType(String literalValue) |
protected TypeDeclarationNode |
findTypeDeclaration(String literalValue) |
List<TypeDeclarationField> |
findTypeDeclarationField(Node node) |
String |
getDescription() |
List<Suggestion> |
getSuggestions(Node node,
ParsingContext context) |
boolean |
matches(Node node) |
cleanFactory, createNodeUsingFactory, getChildren, getFactory, getSuggestions, named, ruleName, then, then, toStringpublic DiscriminatorBasedRule(TypeToRuleVisitor typeToRuleVisitor, Node rootElement, String discriminatorProperty)
@Nullable protected TypeDeclarationNode findTypeDeclaration(String literalValue)
@Nonnull public List<TypeDeclarationField> findTypeDeclarationField(Node node)
public String getDescription()
getDescription in class Rule@Nonnull public List<Suggestion> getSuggestions(Node node, ParsingContext context)
getSuggestions in class RuleCopyright © 2017. All rights reserved.