Class FormFieldEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.contribution.FormFieldEntity
-
public class FormFieldEntity extends Object
- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FormFieldEntity
createFrom(String type, String name, String label, List<FormFieldValueEntity> values)
static FormFieldEntity
createFrom(String type, String name, String label, FormFieldValueEntity value)
Creates a new form field entity from the specified field data.protected String
getLabel()
protected String
getName()
protected String
getType()
protected FormFieldValueEntity
getValue()
protected List<FormFieldValueEntity>
getValues()
protected boolean
isMultiValues()
-
-
-
Method Detail
-
createFrom
public static FormFieldEntity createFrom(String type, String name, String label, FormFieldValueEntity value)
Creates a new form field entity from the specified field data.- Parameters:
type
- the typename
- the namelabel
- the labelvalue
- the value- Returns:
- the entity representing the specified field data.
-
createFrom
public static FormFieldEntity createFrom(String type, String name, String label, List<FormFieldValueEntity> values)
-
getType
protected String getType()
-
getName
protected String getName()
-
getLabel
protected String getLabel()
-
getValue
protected FormFieldValueEntity getValue()
-
getValues
protected List<FormFieldValueEntity> getValues()
-
isMultiValues
protected boolean isMultiValues()
-
-