public interface OpenGraphObject extends GraphObject
Modifier and Type | Interface and Description |
---|---|
static class |
OpenGraphObject.Factory
Exposes helpers for creating instances of OpenGraphObject.
|
Modifier and Type | Method and Description |
---|---|
GraphObject |
getApplication()
Gets the application that created this object.
|
GraphObjectList<GraphObject> |
getAudio()
Gets the audio associated with the Open Graph object.
|
Date |
getCreatedTime()
Gets the date and time the Open Graph object was created.
|
boolean |
getCreateObject()
Gets whether the object represents a new object that should be created as part of publishing via, e.g., the
native Share dialog.
|
GraphObject |
getData()
Gets the type-specific properties of the Open Graph object, if any.
|
String |
getDescription()
Gets the description of the Open Graph object.
|
String |
getDeterminer()
Gets the "determiner" for the Open Graph object.
|
String |
getId()
Gets the ID of the object.
|
GraphObjectList<GraphObject> |
getImage()
Gets the images associated with the Open Graph object.
|
boolean |
getIsScraped()
Gets whether the Open Graph object was created by scraping a Web resource or not.
|
String |
getPostActionId()
Gets the Open Graph action which was created when this Open Graph action was posted, if it is a user-owned
object, otherwise null.
|
List<String> |
getSeeAlso()
Gets the list of related resources for the Open Graph object.
|
String |
getSiteName()
Gets the name of the site hosting the Open Graph object, if any.
|
String |
getTitle()
Gets the title of the Open Graph object.
|
String |
getType()
Gets the type of the object, which is a string in the form "mynamespace:mytype".
|
Date |
getUpdatedTime()
Gets the date and time the Open Graph object was last updated.
|
String |
getUrl()
Gets the URL associated with the Open Graph object.
|
GraphObjectList<GraphObject> |
getVideo()
Gets the videos associated with the Open Graph object.
|
void |
setApplication(GraphObject application)
Sets the application that created this object.
|
void |
setAudio(GraphObjectList<GraphObject> audios)
Sets the audio associated with the Open Graph object.
|
void |
setCreatedTime(Date createdTime)
Sets the date and time the Open Graph object was created.
|
void |
setCreateObject(boolean createObject)
Sets whether the object represents a new object that should be created as part of publishing via, e.g., the
native Share dialog.
|
void |
setData(GraphObject data)
Sets the type-specific properties of the Open Graph object, if any.
|
void |
setDescription(String description)
Sets the description of the Open Graph Object
|
void |
setDeterminer(String determiner)
Sets the "determiner" for the Open Graph object.
|
void |
setId(String id)
Sets the ID of the object.
|
void |
setImage(GraphObjectList<GraphObject> images)
Sets the images associated with the Open Graph object.
|
void |
setImageUrls(List<String> urls)
Sets the images associated with the Open Graph object by specifying their URLs.
|
void |
setIsScraped(boolean isScraped)
Sets whether the Open Graph object was created by scraping a Web resource or not.
|
void |
setPostActionId(String postActionId)
Sets the Open Graph action which was created when this Open Graph action was posted, if it is a user-owned
object, otherwise null.
|
void |
setSeeAlso(List<String> seeAlso)
Sets the list of related resources for the Open Graph object.
|
void |
setSiteName(String siteName)
Sets the name of the site hosting the Open Graph object.
|
void |
setTitle(String title)
Sets the title of the Open Graph object.
|
void |
setType(String type)
Sets the type of the object, which is a string in the form "mynamespace:mytype".
|
void |
setUpdatedTime(Date updatedTime)
Sets the date and time the Open Graph object was last updated.
|
void |
setUrl(String url)
Sets the URL associated with the Open Graph object.
|
void |
setVideo(GraphObjectList<GraphObject> videos)
Sets the videos associated with the Open Graph object.
|
asMap, cast, getInnerJSONObject, getProperty, getPropertyAs, getPropertyAsList, removeProperty, setProperty
String getId()
void setId(String id)
id
- the IDString getType()
void setType(String type)
type
- the typeString getUrl()
void setUrl(String url)
url
- the URLString getTitle()
void setTitle(String title)
title
- the titleString getDescription()
void setDescription(String description)
description
- the descriptionGraphObjectList<GraphObject> getImage()
void setImage(GraphObjectList<GraphObject> images)
images
- the imagesvoid setImageUrls(List<String> urls)
urls
- the URLsGraphObjectList<GraphObject> getVideo()
void setVideo(GraphObjectList<GraphObject> videos)
videos
- the videosGraphObjectList<GraphObject> getAudio()
void setAudio(GraphObjectList<GraphObject> audios)
audios
- the audioString getDeterminer()
void setDeterminer(String determiner)
determiner
- the determiner stringList<String> getSeeAlso()
void setSeeAlso(List<String> seeAlso)
seeAlso
- a list of URLs of related resourcesString getSiteName()
void setSiteName(String siteName)
siteName
- the name of the siteDate getCreatedTime()
void setCreatedTime(Date createdTime)
createdTime
- the creation timeDate getUpdatedTime()
void setUpdatedTime(Date updatedTime)
updatedTime
- the update timeGraphObject getApplication()
void setApplication(GraphObject application)
application
- the applicationboolean getIsScraped()
void setIsScraped(boolean isScraped)
isScraped
- true if the Open Graph object was created by scraping the Web, false if notString getPostActionId()
void setPostActionId(String postActionId)
postActionId
- the ID of the post action, if any, or nullGraphObject getData()
void setData(GraphObject data)
data
- a GraphObject containing the type-specific propertiesboolean getCreateObject()
void setCreateObject(boolean createObject)
createObject
- true if the native Share dialog should create the object as part of publishing an action,
false if not