| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Field<T> |
build()
Constructs an instance of
T with the
current state of the builder. |
void |
clear()
Clears the state of the builder.
|
Field.Builder<T> |
name(java.lang.String name)
Adds the name provided to the current state of the builder.
|
Field.Builder<T> |
title(java.lang.String title)
Adds the title provided to the current state of the builder.
|
Field.Builder<T> |
type(FieldType type)
Adds the type provided to the current state of the builder.
|
Field.Builder<T> |
value(T value)
Adds the value provided to the current state of the builder.
|
public Field.Builder<T> name(java.lang.String name)
name - A name describing the control. Field names MUST be unique
within the set of fields for an action. The behaviour of
clients when parsing a Siren document that violates this
constraint is undefined.public Field.Builder<T> title(java.lang.String title)
title - Textual annotation of a field. Clients may use this as a label.public Field.Builder<T> type(FieldType type)
type - The input type of the field. This is a subset of
the input types specified by HTML5.public Field.Builder<T> value(T value)
value - The value assigned to the field.public void clear()
Copyright © 2017. All Rights Reserved.