public abstract class CDAResource
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
CDAResource() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
attrs() |
<T> T |
getAttribute(java.lang.String key)
Retrieve a specific attribute of this resource.
|
java.lang.String |
id() |
java.lang.String |
toString() |
CDAType |
type() |
public java.lang.String id()
public CDAType type()
public java.util.Map<java.lang.String,java.lang.Object> attrs()
public <T> T getAttribute(java.lang.String key)
T - the type of the attribute to be retrieved.key - a string key associated with the value to be retrieved.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Contentful, GmbH.. All Rights Reserved.