Package com.adobe.reef.siren
Class Field
java.lang.Object
com.adobe.reef.siren.Field
A
Field represents a control inside an Action.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Returns the name attribute.booleanReturns the optional attributegetTitle()Returns the title attribute.getType()Returns the type attribute.getValue()Returns the value attribute.inthashCode()booleanisMulti()Returns the multi attributevoidsetMulti(boolean multi) Sets the multi attributevoidSets the name attribute.voidsetOptional(boolean optional) Sets the optional attribute.voidSets the title attribute.voidsetType(Field.FieldType type) Sets the type attribute.voidSets the value attribute.toString()
-
Constructor Details
-
Field
-
-
Method Details
-
getName
Returns the name attribute.- Returns:
- the name
-
setName
Sets the name attribute.- Parameters:
name- the name to set
-
getType
Returns the type attribute.- Returns:
- the type
-
setType
Sets the type attribute.- Parameters:
type- the type to set
-
getValue
Returns the value attribute.- Returns:
- the value
-
setValue
Sets the value attribute.- Parameters:
value- the value to set
-
getTitle
Returns the title attribute.- Returns:
- the title
-
setTitle
Sets the title attribute.- Parameters:
title- the title to set
-
getOptional
public boolean getOptional()Returns the optional attribute- Returns:
- The optional attribute
-
setOptional
public void setOptional(boolean optional) Sets the optional attribute.- Parameters:
optional- Whether the field should be considered optional
-
isMulti
public boolean isMulti()Returns the multi attribute- Returns:
- The multi attribute
-
setMulti
public void setMulti(boolean multi) Sets the multi attribute- Parameters:
multi- Whether the field can contain multiple values
-
toString
-
hashCode
public int hashCode() -
equals
-