T
- the property typepublic final class FieldDefinition<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldDefinition.Builder<T>
A builder of
FieldDefinition . |
Modifier and Type | Method and Description |
---|---|
static <T> FieldDefinition.Builder<T> |
builder(String name,
Supplier<? extends FieldAdapter<T>> adapterSupplier)
Creates a new builder.
|
Supplier<? extends FieldAdapter<? super T>> |
getAdapterSupplier()
Returns a supplier of the field adapter.
|
String |
getName()
Returns the field name.
|
Optional<ErrorAction> |
getOnMalformedInput()
Returns the error action for malformed inputs.
|
Optional<ErrorAction> |
getOnUnmappableOutput()
Returns the error action for un-mappable outputs.
|
Collection<? extends FieldOutput.Option> |
getOutputOptions()
Returns the output options.
|
Optional<Boolean> |
getSkipEmptyInput()
Returns whether or not this skips empty inputs.
|
Optional<Boolean> |
getTrimInput()
Returns whether or not leading/trailing white-space characters are trimmed.
|
public static <T> FieldDefinition.Builder<T> builder(String name, Supplier<? extends FieldAdapter<T>> adapterSupplier)
T
- the property typename
- the field nameadapterSupplier
- the adapter supplierpublic String getName()
public Supplier<? extends FieldAdapter<? super T>> getAdapterSupplier()
public Optional<Boolean> getTrimInput()
true
if this trims input, otherwise false
public Optional<Boolean> getSkipEmptyInput()
true
if this skips empty inputs, otherwise false
public Optional<ErrorAction> getOnMalformedInput()
public Optional<ErrorAction> getOnUnmappableOutput()
public Collection<? extends FieldOutput.Option> getOutputOptions()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.