public class CMAField extends Object
| Constructor and Description |
|---|
CMAField() |
| Modifier and Type | Method and Description |
|---|---|
HashMap |
getArrayItems()
Returns the
items attribute value as a Map. |
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 |
isDisabled()
Returns the
disabled attribute of this field. |
boolean |
isRequired()
Returns the
required attribute of this field. |
CMAField |
setArrayItems(HashMap arrayItems)
Sets the
items attribute value. |
CMAField |
setDisabled(boolean disabled)
Sets the
disabled attribute value. |
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 value. |
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 setArrayItems(HashMap arrayItems)
items attribute value.arrayItems - Map instanceCMAField instancepublic CMAField setRequired(boolean required)
required attribute value.required - boolean indicating whether or not this field is required
Returns this CMAField instancepublic CMAField setDisabled(boolean disabled)
disabled attribute value.disabled - boolean indicating whether or not this field is disabled
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 HashMap getArrayItems()
items attribute value as a Map.public boolean isRequired()
required attribute of this field.public Boolean isDisabled()
disabled attribute of this field.Copyright © 2015 Contentful, GmbH.. All rights reserved.