| Package | Description |
|---|---|
| org.raml.yagi.framework.grammar | |
| org.raml.yagi.framework.grammar.rule |
| Modifier and Type | Method and Description |
|---|---|
KeyValueRule |
BaseGrammar.field(Rule keyRule,
Rule valueRule)
Matches a field that the key matches the key rule and the value the value rule
|
KeyValueRule |
BaseGrammar.field(String keyName,
Rule valueRule)
Matches a field that the key is of string type and matches the specified key name and the value matches the value rule or null value
|
KeyValueRule |
BaseGrammar.fieldWithRequiredValue(Rule keyRule,
Rule valueRule)
Matches a field that the key is of string type and matches the specified key name and the value matches the value rule.
|
KeyValueRule |
BaseGrammar.requiredField(Rule keyRule,
Rule valueRule)
Matches a field that the key is of string type and matches the specified key name and the value matches the value rule.
|
| Modifier and Type | Method and Description |
|---|---|
KeyValueRule |
KeyValueRule.cleanDefaultValue() |
KeyValueRule |
KeyValueRule.defaultValue(DefaultValue defaultValue) |
KeyValueRule |
KeyValueRule.description(String description) |
KeyValueRule |
KeyValueRule.matchValue()
Marks this rule to accept only when it matches they key and also the value
|
KeyValueRule |
KeyValueRule.required() |
KeyValueRule |
KeyValueRule.requiredWhen(RequiredField requiredField) |
KeyValueRule |
KeyValueRule.then(Class<? extends Node> clazz) |
| Modifier and Type | Method and Description |
|---|---|
List<KeyValueRule> |
ConditionalRule.getRules() |
List<KeyValueRule> |
ConditionalRules.getRulesNode(Node node) |
| Modifier and Type | Method and Description |
|---|---|
ConditionalRule |
ConditionalRule.add(KeyValueRule rule) |
ObjectRule |
ObjectRule.with(int index,
KeyValueRule field)
Adds a field to this object rule at a given order
|
ObjectRule |
ObjectRule.with(KeyValueRule field)
Adds a field to this object rule
|
ObjectRule |
ObjectRule.withAll(KeyValueRule... fields)
Adds all a field to this object rule
|
Copyright © 2017. All rights reserved.