public class Resource extends JsonSerializable
Modifier | Constructor and Description |
---|---|
protected |
Resource()
Constructor.
|
protected |
Resource(org.json.JSONObject jsonObject)
Constructor.
|
protected |
Resource(String jsonString)
Constructor.
|
protected |
Resource(String jsonString,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getETag()
Get the entity tag associated with the resource.
|
String |
getId()
Gets the name of the resource.
|
String |
getResourceId()
Gets the ID associated with the resource.
|
String |
getSelfLink()
Get the self-link associated with the resource.
|
Date |
getTimestamp()
Get the last modified timestamp associated with the resource.
|
void |
setId(String id)
Sets the name of the resource.
|
void |
setResourceId(String resourceId)
Set the ID associated with the resource.
|
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toString
protected Resource()
protected Resource(String jsonString, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
jsonString
- the json string that represents the resource.objectMapper
- the custom object mapperprotected Resource(String jsonString)
jsonString
- the json string that represents the resource.protected Resource(org.json.JSONObject jsonObject)
jsonObject
- the json object that represents the resource.public String getId()
public void setId(String id)
id
- the name of the resource.public String getResourceId()
public void setResourceId(String resourceId)
resourceId
- the ID associated with the resource.public String getSelfLink()
public Date getTimestamp()
public String getETag()
Copyright © 2018. All rights reserved.