public class BoxMetadata extends BoxJsonObject
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIELD_PARENT
The file ID that metadata belongs to.
|
static java.lang.String |
FIELD_SCOPE
The scope that the metadata's template belongs to.
|
static java.lang.String |
FIELD_TEMPLATE
The template that the metadata information belongs to.
|
mProperties| Constructor and Description |
|---|
BoxMetadata()
Constructs an empty BoxMetadata object.
|
BoxMetadata(java.util.Map<java.lang.String,java.lang.Object> JSONData)
Initialize with a Map from Box API response JSON.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getParent()
Gets the metadata's parent.
|
java.lang.String |
getScope()
Gets the metadata's scope.
|
java.lang.String |
getTemplate()
Gets the metadata's template.
|
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_PARENT
public static final java.lang.String FIELD_TEMPLATE
public static final java.lang.String FIELD_SCOPE
public BoxMetadata()
public BoxMetadata(java.util.Map<java.lang.String,java.lang.Object> JSONData)
JSONData - from Box API response JSON.public java.lang.String getParent()
public java.lang.String getTemplate()
public java.lang.String getScope()
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.