Class BookmarkedURL
- java.lang.Object
-
- org.jivesoftware.smackx.bookmarks.BookmarkedURL
-
- All Implemented Interfaces:
SharedBookmark
public class BookmarkedURL extends java.lang.Object implements SharedBookmark
Represents one instance of a URL defined using XEP-0048 Bookmark Storage XEP.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BookmarkedURL(java.lang.String URL)
protected
BookmarkedURL(java.lang.String URL, java.lang.String name, boolean isRss)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getName()
Returns the name representing the URL (eg.java.lang.String
getURL()
Returns the URL.int
hashCode()
boolean
isRss()
Returns true if this URL is a news feed.boolean
isShared()
Returns true if this bookmark is shared.protected void
setName(java.lang.String name)
Sets the name representing the URL.protected void
setRss(boolean isRss)
Set to true if this URL is an RSS or news feed.protected void
setShared(boolean shared)
-
-
-
Constructor Detail
-
BookmarkedURL
protected BookmarkedURL(java.lang.String URL)
-
BookmarkedURL
protected BookmarkedURL(java.lang.String URL, java.lang.String name, boolean isRss)
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name representing the URL (eg. Jive Software). This can be used in as a label, or identifier in applications.- Returns:
- the name representing the URL.
-
setName
protected void setName(java.lang.String name)
Sets the name representing the URL.- Parameters:
name
- the name.
-
getURL
public java.lang.String getURL()
Returns the URL.- Returns:
- the url.
-
setRss
protected void setRss(boolean isRss)
Set to true if this URL is an RSS or news feed.- Parameters:
isRss
- True if the URL is a news feed and false if it is not.
-
isRss
public boolean isRss()
Returns true if this URL is a news feed.- Returns:
- Returns true if this URL is a news feed.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
setShared
protected void setShared(boolean shared)
-
isShared
public boolean isShared()
Description copied from interface:SharedBookmark
Returns true if this bookmark is shared.- Specified by:
isShared
in interfaceSharedBookmark
- Returns:
- returns true if this bookmark is shared.
-
-