hu.bme.mit.books.model
Class Book

java.lang.Object
  extended by hu.bme.mit.books.model.Book

public class Book
extends java.lang.Object

A class for storing books. The class stores for each book its title, author, the number of its pages and whether it has been read or not.

Author:
meres

Constructor Summary
Book()
           
 
Method Summary
 java.lang.String getAuthor()
          Gets the author.
 int getPageNum()
          Gets the page num.
 java.lang.String getTitle()
           
 boolean isRead()
          Checks if is read.
 void setAuthor(java.lang.String author)
          Sets the author.
 void setPageNum(int pageNum)
          Sets the page num.
 void setRead(boolean read)
          Sets the read.
 void setTitle(java.lang.String title)
          Sets the title.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Book

public Book()
Method Detail

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)
Sets the title.

Parameters:
title - the new title

getAuthor

public java.lang.String getAuthor()
Gets the author.

Returns:
the author

setAuthor

public void setAuthor(java.lang.String author)
Sets the author.

Parameters:
author - the new author

getPageNum

public int getPageNum()
Gets the page num.

Returns:
the page num

setPageNum

public void setPageNum(int pageNum)
Sets the page num.

Parameters:
pageNum - the new page num

isRead

public boolean isRead()
Checks if is read.

Returns:
true, if is read

setRead

public void setRead(boolean read)
Sets the read.

Parameters:
read - the new read

toString

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