T - the property typepublic static class PropertyDefinition.Builder<T> extends Object
PropertyDefinition.| Constructor and Description |
|---|
Builder(String name,
Supplier<? extends PropertyAdapter<? super T>> adapterSupplier)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
PropertyDefinition<T> |
build()
Builds a
PropertyDefinition. |
PropertyDefinition.Builder<T> |
withOnMalformedInput(ErrorAction value)
Sets the error action kind of malformed input for this property.
|
PropertyDefinition.Builder<T> |
withOnMissingInput(ErrorAction value)
Sets the error action kind of missing this property from the input.
|
public Builder(String name, Supplier<? extends PropertyAdapter<? super T>> adapterSupplier)
name - the field nameadapterSupplier - the adapter supplierpublic PropertyDefinition.Builder<T> withOnMalformedInput(ErrorAction value)
value - the error action kindpublic PropertyDefinition.Builder<T> withOnMissingInput(ErrorAction value)
value - the error action kindpublic PropertyDefinition<T> build()
PropertyDefinition.Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.