| Package | Description |
|---|---|
| io.doov.core.dsl |
Main package, entry point is
DOOV. |
| io.doov.core.dsl.impl |
Condition implementations.
|
| io.doov.core.dsl.lang |
Dsl interfaces
|
| io.doov.core.dsl.mapping |
Mapping implementations.
|
| Modifier and Type | Method and Description |
|---|---|
static MappingRegistry |
DOOV.mapFor(Stream<? extends DslField<?>> fieldStream,
Function<DslField<?>,MappingRule> mappingRuleFunction)
Create an array of mapping rules from a stream of fields
|
static MappingRegistry |
DOOV.mapRange(int startInclusive,
int endExclusive,
Function<Integer,MappingRule> mappingRuleFunction)
Create an array of mapping rules from a range of index
|
| Modifier and Type | Method and Description |
|---|---|
ConditionalMappingRule |
DefaultStepWhen.then(MappingRule... mappingRule) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ConditionalMappingRule
Conditional mapping rule
The conditional mapping rule will execute when this validation rule is valid.
|
| Modifier and Type | Method and Description |
|---|---|
default Stream<MappingRule> |
MappingRule.stream()
Stream over mapping rules contained in this rule Default implementation returns a stream of itself.
|
| Modifier and Type | Method and Description |
|---|---|
ConditionalMappingRule |
ConditionalMappingRule.otherwise(MappingRule... mappingRule)
Adds rules to execute when the validation rule is invalid
|
ConditionalMappingRule |
StepWhen.then(MappingRule... mapRule)
Return a conditional mapping rule containing all the given mapping rules.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BiMappingRule<I,J,O>
2-to-1 mapping rule
|
class |
DefaultConditionalMappingRule |
class |
MappingRegistry
Immutable, ordered, composable container for
MappingRules |
class |
NaryMappingRule<O>
n-to-1 mapping rule
|
class |
SimpleMappingRule<I,O>
1-to-1 mapping rule
|
class |
StaticMappingRule<I,O> |
| Modifier and Type | Method and Description |
|---|---|
Stream<MappingRule> |
MappingRegistry.stream() |
| Modifier and Type | Method and Description |
|---|---|
static MappingRegistry |
MappingRegistry.mappings(MappingRule... mappingRules) |
ConditionalMappingRule |
DefaultConditionalMappingRule.otherwise(MappingRule... elseRules) |
MappingRegistry |
MappingRegistry.with(MappingRule... rulestoAdd)
Create a new registry with all rules of the current registry followed by the given mapping rules
|
| Constructor and Description |
|---|
DefaultConditionalMappingRule(StepWhen stepWhen,
MappingRule... mappingRules) |
Copyright © 2018. All rights reserved.