com. kelvinluck. flickr.TagClass to describe a tag on a photo on flickr.com Instances of this class are created to hold tags that are attached to Photos returned from flickr.com AuthorKelvin Luck < kelvin at kelvinluck dot com > Summary
_tags
A private static Object containing Tag objects. Used by getTag to insure that only one Tag is created for each tag returned from flickr.com Tag
Don’t call directly, use getTag to make sure that there is only one Tag instance for each id as returned by flickr.com addRelatedTaggetTag
Get’s a Tag object for the given id. Consults _tags to make sure that only one Tag instance is created for each tag id from flickr.com Parameters
|
The raw text of this tag
public var raw: String
The text of this tag
public var value: String
An object detailing the relationships between this tag and different photos.
public var _photos: Object
An object containing a list of tags that are related to this one, based on clustered usage analysis.
public var relatedTags: Object
A private static Object containing Tag objects.
private static var _tags: Object
private function Tag( raw: String )
Add’s a reference to a Photo to this Tag.
function addPhoto( id: String, photo: Photo, author: Person ):Void
Get’s this tags _photos Object.
function getPhotos():Object
Add’s a reference to a related Tag to this Tag.
function addRelatedTag( tag: Tag )
Get’s a Tag object for the given id.
public static function getTag( raw: String ):Tag
Calls flickr.tags.getRelated to get a list of tags ‘related’ to the given tag, based on clustered usage analysis.
public function tagsGetRelated( tag: String )