public class VerifyRuleBuilder extends Object
VerifyRule
s.Modifier and Type | Class and Description |
---|---|
static class |
VerifyRuleBuilder.Property
Builds verify conditions for individual properties.
|
Constructor and Description |
---|
VerifyRuleBuilder(DataModelDefinition<?> definition)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
VerifyRuleBuilder |
acceptIfAbsent()
Adds a rule to accept if actual data is absent.
|
VerifyRuleBuilder |
acceptIfUnexpected()
Adds a rule to accept if expected data is absent.
|
VerifyRuleBuilder.Property |
property(String name)
Returns the sub rule builder for the specified property.
|
VerifyRule |
toVerifyRule()
Returns a
VerifyRule from since added rules. |
public VerifyRuleBuilder(DataModelDefinition<?> definition)
definition
- the definition of target data model typeIllegalArgumentException
- if some parameters were null
public VerifyRuleBuilder acceptIfAbsent()
public VerifyRuleBuilder acceptIfUnexpected()
public VerifyRuleBuilder.Property property(String name)
name
- the property nameIllegalArgumentException
- if the property does not exist,
or if some parameters were null
public VerifyRule toVerifyRule()
VerifyRule
from since added rules.VerifyRule
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.