Class Song
- java.lang.Object
-
- com.rometools.rome.feed.atom.Entry
-
- com.rometools.modules.activitystreams.types.ActivityObject
-
- com.rometools.modules.activitystreams.types.Song
-
- All Implemented Interfaces:
HasLocation,Extendable,Serializable,Cloneable
public class Song extends ActivityObject
The "song" Object type represents a song or a recording of a song.
Objects of type Song might contain information about the song or recording, or they might contain some representation of the recording itself. In the latter case, the song SHOULD also be annotated with the "audio" object type as described in Section 3.2.2 (Audio) and use its properties. This type should only be used when the publisher can guarantee that the object is a song rather than merely a generic audio stream.
The Object type URL for the "song" Object type is http://activitystrea.ms/schema/1.0/song.
A song has no additional components.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Song()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudiogetAudio()Get the value of audioStringgetTypeIRI()voidsetAudio(Audio newaudio)Set the value of audio-
Methods inherited from class com.rometools.modules.activitystreams.types.ActivityObject
getAddress, getLocation, setAddress, setLocation
-
Methods inherited from class com.rometools.rome.feed.atom.Entry
clone, equals, findRelatedLink, getAlternateLinks, getAuthors, getCategories, getContents, getContributors, getCreated, getForeignMarkup, getId, getIssued, getModified, getModule, getModules, getOtherLinks, getPublished, getRights, getSource, getSummary, getTitle, getTitleEx, getUpdated, getXmlBase, hashCode, isMediaEntry, setAlternateLinks, setAuthors, setCategories, setContents, setContributors, setCreated, setForeignMarkup, setId, setIssued, setModified, setModules, setOtherLinks, setPublished, setRights, setSource, setSummary, setTitle, setTitleEx, setUpdated, setXmlBase, toString
-
-
-
-
Method Detail
-
setAudio
public void setAudio(Audio newaudio)
Set the value of audio- Parameters:
newaudio- new value of audio
-
getAudio
public Audio getAudio()
Get the value of audio- Returns:
- the value of audio
-
getTypeIRI
public String getTypeIRI()
- Specified by:
getTypeIRIin classActivityObject
-
-