public class CMAField extends Object
| Constructor and Description |
|---|
CMAField() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Returns the
id attribute of this field. |
String |
getLinkType()
Returns the
linkType attribute of this field. |
String |
getName()
Returns the
name attribute of this field. |
Constants.CMAFieldType |
getType()
Returns the
type attribute of this field. |
List<Map> |
getValidations()
Returns a
List of validation rules for this field. |
boolean |
isRequired()
Returns the
required attribute of this field. |
CMAField |
setId(String id)
Sets the ID for this field.
|
CMAField |
setLinkType(String linkType)
Sets the link type for this field.
|
CMAField |
setName(String name)
Sets the name for this field.
|
CMAField |
setRequired(boolean required)
Sets the
required attribute of this field. |
CMAField |
setType(Constants.CMAFieldType type)
Sets the type for this field.
|
CMAField |
setValidations(List<Map> validations)
Sets a
List of validation rules for this field. |
public CMAField setName(String name)
CMAField instancepublic CMAField setType(Constants.CMAFieldType type)
CMAField instancepublic CMAField setLinkType(String linkType)
CMAField instancepublic CMAField setValidations(List<Map> validations)
List of validation rules for this field.validations - validations list
Returns this CMAField instancepublic CMAField setRequired(boolean required)
required attribute of this field.required - boolean indicating whether or not this field is required
Returns this CMAField instancepublic String getId()
id attribute of this field.public String getName()
name attribute of this field.public Constants.CMAFieldType getType()
type attribute of this field.public String getLinkType()
linkType attribute of this field.public boolean isRequired()
required attribute of this field.Copyright © 2014 Contentful, GmbH.. All rights reserved.