public class CMAContentType extends CMAResource
| Constructor and Description |
|---|
CMAContentType() |
| Modifier and Type | Method and Description |
|---|---|
CMAContentType |
addField(CMAField field)
Adds a new field.
|
String |
getDescription() |
String |
getDisplayField() |
List<CMAField> |
getFields() |
String |
getName() |
Boolean |
isArchived() |
Boolean |
isPublished() |
CMAContentType |
setDescription(String description)
Sets the description field for this Content Type.
|
CMAContentType |
setDisplayField(String displayField)
Sets the display field for this Content Type.
|
CMAContentType |
setFields(List<CMAField> fields)
Sets a list of fields for this Content Type.
|
CMAContentType |
setId(String id)
Sets the ID for this Content Type.
|
CMAContentType |
setName(String name)
Sets the name for this Content Type.
|
getResourceId, getSpaceId, getSys, getVersion, setSyspublic CMAContentType setId(String id)
setId in class CMAResourceid - the id to be setCMAContentType instancepublic CMAContentType addField(CMAField field)
field - CMAField instanceCMAContentTypepublic CMAContentType setName(String name)
name - nameCMAContentTypepublic String getName()
public CMAContentType setFields(List<CMAField> fields)
fields - List of fieldsCMAContentType instancepublic String getDisplayField()
public CMAContentType setDisplayField(String displayField)
displayField - the field to be setCMAContentType instancepublic String getDescription()
public CMAContentType setDescription(String description)
description - the description to be setCMAContentType instancepublic Boolean isArchived()
public Boolean isPublished()
Copyright © 2016 Contentful, GmbH.. All Rights Reserved.