| Package | Description |
|---|---|
| org.raml.yagi.framework.grammar | |
| org.raml.yagi.framework.grammar.rule |
| Modifier and Type | Method and Description |
|---|---|
ConditionalRules |
BaseGrammar.when(List<String> expr,
ConditionalRule... cases)
It will dispatch the to the conditional rule that matches the selected value.
|
ConditionalRules |
BaseGrammar.when(String expr,
ConditionalRule... cases)
It will dispatch the to the conditional rule that matches the selected value.
|
| Modifier and Type | Method and Description |
|---|---|
ConditionalRules |
ConditionalRules.defaultValue(DefaultValue defaultValue) |
ConditionalRules |
ConditionalRules.defaultValue(Node defaultValue)
This method lets you use a value node to match the when clause when there is no other rule that matches.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectRule |
ObjectRule.with(ConditionalRules conditional)
Defines conditional fields based on a condition.
|
Copyright © 2017. All rights reserved.