eTextReader
Class Bookmark

java.lang.Object
  extended by eTextReader.Bookmark
All Implemented Interfaces:
java.lang.Cloneable

public class Bookmark
extends java.lang.Object
implements java.lang.Cloneable

A class to store and recall various aspects of bookmarks

Version:
1.0
Author:
Josh Morse

Field Summary
private  int id
           
(package private)  boolean isReading
           
private  java.lang.String location
           
private  java.lang.String name
           
private  java.lang.String url
           
static java.lang.String USER_BOOKMARK_PREFIX
           
 
Constructor Summary
Bookmark()
          Constructs a Bookmark with empty strings for the parameters
Bookmark(int id, java.lang.String name, java.lang.String url, java.lang.String location, boolean isReading)
          Constructs a Bookmark object
 
Method Summary
 java.lang.Object clone()
          Returns a deep copy of the Bookmark
 int getId()
           
 java.lang.String getLocation()
          Returns the location of the Bookmark.
 java.lang.String getName()
          Returns the name of the Bookmark.
 java.lang.String getUrl()
          Returns the url of the Bookmark.
 boolean isReading()
           
 void setLocation(java.lang.String location)
          Sets the location of the Bookmark to the given parameter
 void setName(java.lang.String name)
          Sets the name of the Bookmark to the given parameter
 void setUrl(java.lang.String url)
          Sets the rul of the Bookmark to the given parameter
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

url

private java.lang.String url

location

private java.lang.String location

id

private int id

isReading

boolean isReading

USER_BOOKMARK_PREFIX

public static final java.lang.String USER_BOOKMARK_PREFIX
See Also:
Constant Field Values
Constructor Detail

Bookmark

public Bookmark()
Constructs a Bookmark with empty strings for the parameters


Bookmark

public Bookmark(int id,
                java.lang.String name,
                java.lang.String url,
                java.lang.String location,
                boolean isReading)
Constructs a Bookmark object

Method Detail

setName

public void setName(java.lang.String name)
Sets the name of the Bookmark to the given parameter


setUrl

public void setUrl(java.lang.String url)
Sets the rul of the Bookmark to the given parameter


setLocation

public void setLocation(java.lang.String location)
Sets the location of the Bookmark to the given parameter


getName

public java.lang.String getName()
Returns the name of the Bookmark.


getUrl

public java.lang.String getUrl()
Returns the url of the Bookmark.


getLocation

public java.lang.String getLocation()
Returns the location of the Bookmark.


isReading

public boolean isReading()

clone

public java.lang.Object clone()
Returns a deep copy of the Bookmark

Overrides:
clone in class java.lang.Object

getId

public int getId()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object