| Package | Description |
|---|---|
| com.contentful.java.cma.gson | |
| com.contentful.java.cma.model |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonElement |
FieldTypeAdapter.serialize(CMAField field,
Type type,
com.google.gson.JsonSerializationContext context)
Serialize all fields for content types.
|
| Modifier and Type | Method and Description |
|---|---|
CMAField |
CMAField.setAllowedResources(List<Map<String,Object>> allowedResources)
Sets a
List of allowed resources for this field. |
CMAField |
CMAField.setArrayItems(Map<String,Object> arrayItems)
Sets the
items attribute value. |
CMAField |
CMAField.setDefaultValue(Map<String,Object> defaultValue)
Sets the default value.
|
CMAField |
CMAField.setDisabled(boolean disabled)
Sets the
disabled attribute value. |
CMAField |
CMAField.setId(String id)
Sets the ID for this field.
|
CMAField |
CMAField.setLinkType(String linkType)
Sets the link type for this field.
|
CMAField |
CMAField.setLocalized(boolean localized)
Sets the
localized attribute value. |
CMAField |
CMAField.setName(String name)
Sets the name for this field.
|
CMAField |
CMAField.setOmitted(boolean omitted)
Sets the
omitted attribute value. |
CMAField |
CMAField.setRequired(boolean required)
Sets the
required attribute value. |
CMAField |
CMAField.setType(Constants.CMAFieldType type)
Sets the type for this field.
|
CMAField |
CMAField.setValidations(List<Map<String,Object>> validations)
Sets a
List of validation rules for this field. |
| Modifier and Type | Method and Description |
|---|---|
List<CMAField> |
CMAContentType.getFields() |
| Modifier and Type | Method and Description |
|---|---|
CMAContentType |
CMAContentType.addField(CMAField field)
Adds a new field.
|
| Modifier and Type | Method and Description |
|---|---|
CMAContentType |
CMAContentType.setFields(List<CMAField> fields)
Sets a list of fields for this Content Type.
|
Copyright © 2026 Contentful, GmbH.. All rights reserved.