public class CMAContentType extends CMAResource
| Constructor and Description |
|---|
CMAContentType()
Create a CMAContentType, filling it's
CMASystem field. |
| Modifier and Type | Method and Description |
|---|---|
CMAContentType |
addField(CMAField field)
Adds a new field.
|
java.lang.String |
getDescription() |
java.lang.String |
getDisplayField() |
java.util.List<CMAField> |
getFields() |
java.lang.String |
getName() |
java.lang.Integer |
getVersion()
Convenience for getting the version of this resource.
|
CMAContentType |
setDescription(java.lang.String description)
Sets the description field for this Content Type.
|
CMAContentType |
setDisplayField(java.lang.String displayField)
Sets the display field for this Content Type.
|
CMAContentType |
setEnvironmentId(java.lang.String environmentId)
Convenience method for setting an environment id.
|
CMAContentType |
setFields(java.util.List<CMAField> fields)
Sets a list of fields for this Content Type.
|
CMAContentType |
setId(java.lang.String id)
Convenience: Update the id of this entry without going through
CMAResource.getSystem(). |
CMAContentType |
setName(java.lang.String name)
Sets the name for this Content Type.
|
CMAContentType |
setSpaceId(java.lang.String spaceId)
Convenience: Update the space id of this entry without going through
CMAResource.getSystem(). |
CMAContentType |
setSystem(CMASystem system)
Sets the system field.
|
CMAContentType |
setVersion(java.lang.Integer version)
Convenience: Update the version of this entry without going through
CMAResource.getSystem(). |
java.lang.String |
toString() |
getEnvironmentId, getId, getSpaceId, getSystem, isArchived, isPublishedpublic CMAContentType()
CMASystem field.public CMAContentType addField(CMAField field)
field - CMAField instanceCMAContentTypepublic java.lang.String getName()
public CMAContentType setName(java.lang.String name)
name - nameCMAContentTypepublic java.util.List<CMAField> getFields()
public CMAContentType setFields(java.util.List<CMAField> fields)
fields - List of fieldsCMAContentType instancepublic java.lang.String getDisplayField()
public CMAContentType setDisplayField(java.lang.String displayField)
displayField - the field to be setCMAContentType instancepublic java.lang.String getDescription()
public CMAContentType setDescription(java.lang.String description)
description - the description to be setCMAContentType instancepublic CMAContentType setSystem(CMASystem system)
setSystem in class CMAResourcesystem - sets the system property.public CMAContentType setId(java.lang.String id)
CMAResource.getSystem().setId in class CMAResourceid - to be set.public java.lang.Integer getVersion()
getVersion in class CMAResourcepublic CMAContentType setVersion(java.lang.Integer version)
CMAResource.getSystem().setVersion in class CMAResourceversion - to be set.public CMAContentType setSpaceId(java.lang.String spaceId)
CMAResource.getSystem().setSpaceId in class CMAResourcespaceId - to be set.public CMAContentType setEnvironmentId(java.lang.String environmentId)
setEnvironmentId in class CMAResourceenvironmentId - the id to be set.CMAResource for chaining.public java.lang.String toString()
toString in class CMAResourceCopyright © 2019 Contentful, GmbH.. All Rights Reserved.