public class CMAContentType extends CMAResource
| Constructor and Description |
|---|
CMAContentType() |
| Modifier and Type | Method and Description |
|---|---|
CMAContentType |
addField(CMAField field)
Adds a new field.
|
String |
getDisplayField()
Returns the display field of this Content Type.
|
List<CMAField> |
getFields()
Returns a list of fields for this Content Type.
|
String |
getName()
Returns the name of this Content Type.
|
Boolean |
isArchived()
Returns true if this resource is archived.
|
Boolean |
isPublished()
Returns true if this resource is published.
|
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)
CMAContentType instancesetId in class CMAResourcepublic 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)
CMAContentType instancepublic Boolean isArchived()
public Boolean isPublished()
Copyright © 2014 Contentful, GmbH.. All rights reserved.