public class CMAField extends Object
| Constructor and Description |
|---|
CMAField() |
| Modifier and Type | Method and Description |
|---|---|
HashMap |
getArrayItems() |
String |
getId() |
String |
getLinkType() |
String |
getName() |
Constants.CMAFieldType |
getType() |
List<Map> |
getValidations() |
Boolean |
isDisabled() |
boolean |
isLocalized() |
Boolean |
isOmitted() |
boolean |
isRequired() |
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 |
setLocalized(boolean localized)
Sets the
localized attribute value. |
CMAField |
setName(String name)
Sets the name for this field.
|
CMAField |
setOmitted(boolean omitted)
Sets the
omitted attribute value. |
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. |
String |
toString() |
public CMAField setDisabled(boolean disabled)
disabled attribute value.disabled - boolean indicating whether or not this field is disabled
Returns this CMAField instanceCMAField instancepublic CMAField setOmitted(boolean omitted)
omitted attribute value.omitted - boolean indicating whether or not this field is complete omitted
Returns this CMAField instanceCMAField instancepublic String getId()
id attribute of this field.public CMAField setId(String id)
id - the id to be setCMAField instancepublic String getName()
name attribute of this field.public CMAField setName(String name)
name - the name to be setCMAField instancepublic Constants.CMAFieldType getType()
type attribute of this field.public CMAField setType(Constants.CMAFieldType type)
type - the type to be setCMAField instancepublic String getLinkType()
linkType attribute of this field.public CMAField setLinkType(String linkType)
linkType - the type of link to be setCMAField instancepublic List<Map> getValidations()
List of validation rules for this field.public CMAField setValidations(List<Map> validations)
List of validation rules for this field.validations - validations list
Returns this CMAField instanceCMAField instancepublic HashMap getArrayItems()
items attribute value as a Map.public CMAField setArrayItems(HashMap arrayItems)
items attribute value.arrayItems - Map instanceCMAField instancepublic boolean isRequired()
required attribute of this field.public CMAField setRequired(boolean required)
required attribute value.required - boolean indicating whether or not this field is required
Returns this CMAField instanceCMAField instancepublic Boolean isDisabled()
disabled attribute of this field.public Boolean isOmitted()
omitted attribute of this field.public boolean isLocalized()
localized attribute of this field.public CMAField setLocalized(boolean localized)
localized attribute value.localized - boolean indicating whether or not this field is localized
Returns this CMAField instanceCMAField instanceCopyright © 2017 Contentful, GmbH.. All Rights Reserved.