public interface HalFormsOptions
options
attribute.https://rwcbook.github.io/hal-forms/#options-element
Modifier and Type | Interface and Description |
---|---|
static class |
HalFormsOptions.AbstractHalFormsOptions<T extends HalFormsOptions.AbstractHalFormsOptions<T>> |
static class |
HalFormsOptions.Inline |
static class |
HalFormsOptions.Remote
Representation of a remote options element.
|
Modifier and Type | Method and Description |
---|---|
Long |
getMaxItems()
Returns the maximum number of items to be selected.
|
Long |
getMinItems()
Returns the minimum number of items to be selected.
|
String |
getPromptField()
The field to look up the prompt from.
|
Object |
getSelectedValue() |
String |
getValueField()
The field to use as the value to be sent.
|
static HalFormsOptions.Inline |
inline(Collection<? extends Object> values)
Creates a new
HalFormsOptions.Inline options representation listing the given collection of values. |
static <T> HalFormsOptions.Inline |
inline(T... values)
Creates a new
HalFormsOptions.Inline options representation listing the given values. |
static HalFormsOptions.Remote |
remote(Link link)
Creates a new
HalFormsOptions.Remote options representation using the given Link . |
static HalFormsOptions.Remote |
remote(String href)
Creates a new
HalFormsOptions.Remote options representation using the given href. |
static <T> HalFormsOptions.Inline inline(T... values)
HalFormsOptions.Inline
options representation listing the given values.values
- must not be null.static HalFormsOptions.Inline inline(Collection<? extends Object> values)
HalFormsOptions.Inline
options representation listing the given collection of values.values
- must not be null.static HalFormsOptions.Remote remote(Link link)
HalFormsOptions.Remote
options representation using the given Link
.link
- must not be null.static HalFormsOptions.Remote remote(String href)
HalFormsOptions.Remote
options representation using the given href.href
- must not be null.@Nullable Long getMinItems()
Long
.@Nullable Long getMaxItems()
Long
.Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.