public class Field extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Field.Type
All types of fields which are available by default.
|
Constructor and Description |
---|
Field()
Creates a new Parameter with no associated name or type.
|
Field(String name,
String type)
Creates a new Field with the given name and type.
|
Field(String name,
String type,
Collection<String> options)
Creates a new Field with the given name, type, and possible values.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the unique name associated with this field.
|
Collection<String> |
getOptions()
Returns a mutable collection of field options.
|
String |
getType()
Returns the type of this field.
|
void |
setName(String name)
Sets the unique name associated with this field.
|
void |
setOptions(Collection<String> options)
Sets the options available as possible values of this field.
|
void |
setType(String type)
Sets the type of this field.
|
public Field()
public Field(String name, String type)
name
- The unique name to associate with this field.type
- The type of this field.public Field(String name, String type, Collection<String> options)
name
- The unique name to associate with this field.type
- The type of this field.options
- A collection of all possible valid options for this field.public String getName()
public void setName(String name)
name
- The unique name to assign to this field.public String getType()
public void setType(String type)
type
- The type of this field.public Collection<String> getOptions()
public void setOptions(Collection<String> options)
options
- The options to associate with this field.Copyright © 2018. All rights reserved.