public class BoxEntity extends BoxJsonObject
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIELD_ID |
static java.lang.String |
FIELD_ITEM_ID |
static java.lang.String |
FIELD_ITEM_TYPE |
static java.lang.String |
FIELD_TYPE |
mProperties| Constructor and Description |
|---|
BoxEntity()
Constructs an empty BoxEntity object.
|
BoxEntity(java.util.Map<java.lang.String,java.lang.Object> map)
Constructs a BoxEntity with the provided map values.
|
| Modifier and Type | Method and Description |
|---|---|
static BoxEntity |
createEntityFromJson(com.eclipsesource.json.JsonObject json)
Helper method that will parse into a known child of BoxEntity.
|
static BoxEntity |
createEntityFromJson(java.lang.String json)
Helper method that will parse into a known child of BoxEntity.
|
java.lang.String |
getId()
Gets the id.
|
java.lang.String |
getType()
Gets the type of the entity.
|
protected void |
parseJSONMember(com.eclipsesource.json.JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
createFromJson, createFromJson, getPropertiesAsHashMap, parseJsonObject, parseNullJsonMember, toJson, toJsonObjectpublic static final java.lang.String FIELD_ID
public static final java.lang.String FIELD_TYPE
public static final java.lang.String FIELD_ITEM_TYPE
public static final java.lang.String FIELD_ITEM_ID
public BoxEntity()
public BoxEntity(java.util.Map<java.lang.String,java.lang.Object> map)
map - map of keys and values of the object.public java.lang.String getId()
public java.lang.String getType()
protected void parseJSONMember(com.eclipsesource.json.JsonObject.Member member)
BoxJsonObjectSubclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
parseJSONMember in class BoxJsonObjectmember - the JSON member to be parsed.public static BoxEntity createEntityFromJson(java.lang.String json)
json - json representing a BoxEntity or one of its known children.public static BoxEntity createEntityFromJson(com.eclipsesource.json.JsonObject json)
json - JsonObject representing a BoxEntity or one of its known children.