public class BoxWebLink.Info extends BoxItem.Info
Constructor and Description |
---|
Info()
Constructs an empty Info object.
|
Info(JsonObject jsonObject)
Constructs an Info object using an already parsed JSON object.
|
Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Gets the description of this weblink.
|
URL |
getLinkURL()
Gets the URL this weblink points to.
|
BoxWebLink |
getResource()
Gets the resource associated with this Info.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
getCollections, getContentCreatedAt, getContentModifiedAt, getCreatedAt, getCreatedBy, getEtag, getExpiresAt, getItemStatus, getModifiedAt, getModifiedBy, getName, getOwnedBy, getParent, getPathCollection, getPurgedAt, getSequenceID, getSharedLink, getSize, getTags, getTrashedAt, getType, removeSharedLink, setCollections, setDescription, setName, setSharedLink, setTags
getID
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public Info()
public Info(String json)
json
- the JSON string to parse.public Info(JsonObject jsonObject)
jsonObject
- the parsed JSON object.public BoxWebLink getResource()
BoxResource.Info
getResource
in class BoxResource.Info
public String getDescription()
getDescription
in class BoxItem.Info
public URL getLinkURL()
protected 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.
parseJSONMember
in class BoxItem.Info
member
- the JSON member to be parsed.