T - the property typepublic class PropertyDefinition<T> extends Object
PropertyDefinition.Builder| Modifier and Type | Class and Description | 
|---|---|
| static class  | PropertyDefinition.Builder<T>A builder for  PropertyDefinition. | 
| Modifier and Type | Field and Description | 
|---|---|
| static ErrorAction | DEFAULT_ON_MALFORMED_INPUTThe default value of  getOnMalformedInput(). | 
| static ErrorAction | DEFAULT_ON_MISSING_INPUTThe default value of  getOnMissingInput(). | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | PropertyDefinition(PropertyDefinition.Builder<T> builder)Creates a new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> PropertyDefinition.Builder<T> | builder(String name,
       Supplier<? extends PropertyAdapter<? super T>> adapterSupplier)Creates a new builder. | 
| PropertyAdapter<? super T> | getAdapter()Returns a new adapter. | 
| Supplier<? extends PropertyAdapter<? super T>> | getAdapterSupplier()Returns the adapter supplier. | 
| String | getName()Returns the name. | 
| ErrorAction | getOnMalformedInput()Returns the error action kind of malformed input for this property. | 
| ErrorAction | getOnMissingInput()Returns the error action kind of missing this property. | 
public static final ErrorAction DEFAULT_ON_MALFORMED_INPUT
getOnMalformedInput().public static final ErrorAction DEFAULT_ON_MISSING_INPUT
getOnMissingInput().protected PropertyDefinition(PropertyDefinition.Builder<T> builder)
builder - the source builderpublic static <T> PropertyDefinition.Builder<T> builder(String name, Supplier<? extends PropertyAdapter<? super T>> adapterSupplier)
T - the property typename - the field nameadapterSupplier - the adapter supplierpublic String getName()
public Supplier<? extends PropertyAdapter<? super T>> getAdapterSupplier()
public PropertyAdapter<? super T> getAdapter()
public ErrorAction getOnMalformedInput()
public ErrorAction getOnMissingInput()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.