Package com.contentful.java.cda
Class CDAContentType
- java.lang.Object
-
- com.contentful.java.cda.CDAResource
-
- com.contentful.java.cda.CDAContentType
-
- All Implemented Interfaces:
java.io.Serializable
public class CDAContentType extends CDAResource
Represents a single content type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CDAContentType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdescription()java.lang.StringdisplayField()java.util.List<CDAField>fields()java.lang.Stringname()java.lang.StringtoString()Convert this object into a human readable string.-
Methods inherited from class com.contentful.java.cda.CDAResource
attrs, getAttribute, id, type
-
-
-
-
Method Detail
-
fields
public java.util.List<CDAField> fields()
- Returns:
- list of fields.
-
name
public java.lang.String name()
- Returns:
- name of this content type.
-
displayField
public java.lang.String displayField()
- Returns:
- field to be used for displaying.
-
description
public java.lang.String description()
- Returns:
- description of this content type.
-
toString
public java.lang.String toString()
Convert this object into a human readable string.- Overrides:
toStringin classCDAResource- Returns:
- a string, containing id, name and description of this type.
-
-