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