public class HtmlInputType extends Object
<input … />
elements.
Note, that there are currently only constants defined for the input types we currently support in any of the media types supported by Spring HATEOAS out of the box. If your media type needs an additional one, please file a ticket.
https://www.w3.org/TR/html52/sec-forms.html#element-attrdef-input-type
Modifier and Type | Method and Description |
---|---|
static HtmlInputType |
from(Class<?> type)
Returns the
HtmlInputType derived from the given ResolvableType . |
static HtmlInputType |
of(String value)
Returns the
HtmlInputType for the given string value. |
String |
toString() |
String |
value() |
public static final String CHECKBOX_VALUE
public static final HtmlInputType CHECKBOX
public static final String COLOR_VALUE
public static final HtmlInputType COLOR
public static final String DATE_VALUE
public static final HtmlInputType DATE
public static final String DATETIME_LOCAL_VALUE
public static final HtmlInputType DATETIME_LOCAL
public static final String EMAIL_VALUE
public static final HtmlInputType EMAIL
public static final String FILE_VALUE
public static final HtmlInputType FILE
public static final String HIDDEN_VALUE
public static final HtmlInputType HIDDEN
public static final String MONTH_VALUE
public static final HtmlInputType MONTH
public static final String NUMBER_VALUE
public static final HtmlInputType NUMBER
public static final String PASSWORD_VALUE
public static final HtmlInputType PASSWORD
public static final String RADIO_VALUE
public static final HtmlInputType RADIO
public static final String RANGE_VALUE
public static final HtmlInputType RANGE
public static final String SEARCH_VALUE
public static final HtmlInputType SEARCH
public static final String TEL_VALUE
public static final HtmlInputType TEL
public static final String TEXT_VALUE
public static final HtmlInputType TEXT
public static final String TEXTAREA_VALUE
public static final HtmlInputType TEXTAREA
public static final String TIME_VALUE
public static final HtmlInputType TIME
public static final String URL_VALUE
public static final HtmlInputType URL
public static final String WEEK_VALUE
public static final HtmlInputType WEEK
@Nullable public static HtmlInputType of(String value)
HtmlInputType
for the given string value.value
- must not be null or empty.HtmlInputType
or null if no match was found.@Nullable public static HtmlInputType from(Class<?> type)
HtmlInputType
derived from the given ResolvableType
.type
- must not be null.public String value()
Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.