public class ContentType
extends java.lang.Object
Also serves as the response from an invocation of DeliveryClient.getType(String).
| Modifier and Type | Class and Description |
|---|---|
static class |
ContentType.ContentTypeBuilder |
| Constructor and Description |
|---|
ContentType() |
ContentType(System system,
java.util.Map<java.lang.String,Element> elements) |
| Modifier and Type | Method and Description |
|---|---|
static ContentType.ContentTypeBuilder |
builder() |
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,Element> |
getElements()
Content type elements in the content type.
|
System |
getSystem()
System attributes of the content type. |
int |
hashCode() |
void |
setElements(java.util.Map<java.lang.String,Element> elements)
Content type elements in the content type.
|
void |
setSystem(System system)
System attributes of the content type. |
java.lang.String |
toString() |
public static ContentType.ContentTypeBuilder builder()
public System getSystem()
System attributes of the content type.public java.util.Map<java.lang.String,Element> getElements()
Note: The order of the Element objects might not match the order in the Kontent.ai UI.
Element objects.public void setSystem(System system)
System attributes of the content type.system - New value for System attributes of this content type.public void setElements(java.util.Map<java.lang.String,Element> elements)
Note: The order of the Element objects might not match the order in the Kontent.ai UI.
elements - New value of this ContentType's Element objects.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object