public class BoxMetadataQueryItem extends BoxJSONObject
Unless otherwise noted, the methods in this class can throw an unchecked BoxAPIException
(unchecked
meaning that the compiler won't force you to handle it) if an error occurs. If you wish to implement custom error
handling for errors related to the Box REST API, you should capture this exception explicitly.
Constructor and Description |
---|
BoxMetadataQueryItem(JsonObject jsonObject,
BoxAPIConnection api)
Construct a BoxMetadataQueryItem.
|
Modifier and Type | Method and Description |
---|---|
BoxItem.Info |
getItem()
Get the item which was interacted with.
|
HashMap<String,ArrayList<Metadata>> |
getMetadata()
Get the metadata on the item.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public BoxMetadataQueryItem(JsonObject jsonObject, BoxAPIConnection api)
jsonObject
- the parsed JSON object.api
- the API connection to be used to fetch interacted itemprotected void parseJSONMember(JsonObject.Member member)
BoxJSONObject
Subclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
member
- the JSON member to be parsed.public BoxItem.Info getItem()
public HashMap<String,ArrayList<Metadata>> getMetadata()