001 /* PAVLOV -- Multiple Choice Study System
002 * Copyright (C) 2000 - 2004 T.J. Willis
003 *
004 * This program is free software; you can redistribute it and/or
005 * modify it under the terms of the GNU General Public License
006 * as published by the Free Software Foundation; either version 2
007 * of the License, or (at your option) any later version.
008 *
009 * This program is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012 * GNU General Public License for more details.
013 *
014 * You should have received a copy of the GNU General Public License
015 * along with this program; if not, write to the Free Software
016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
017 *
018 * $Header: /cvsroot/pavlov/net/sourceforge/pavlov/library/LibraryDocument.java,v 1.1 2004/05/10 14:55:14 tj_willis Exp $
019 */
020 package net.sourceforge.pavlov.library;
021
022 public class LibraryDocument
023 implements java.io.Serializable
024 {
025 // FIXED: this had to be serializable: thanks JUnit!
026 /** Descriptive name of this document. */
027 protected String name;
028 /** Name of the author/maintainer of this document. */
029 protected String author;
030 /** Textual description of this document's content. */
031 protected String description;
032 /**
033 * Sets descriptive name of this book.
034 * @param n a <code>String</code> value
035 */
036 public void setName(String n) {
037 name = n;
038 }
039 /**
040 * Returns descriptive name of this book.
041 * @return a <code>String</code> value
042 */
043 public String getName() {
044 return name;
045 }
046
047 /**
048 * Sets name of the author/maintainer of this book.
049 * @param n a <code>String</code> value
050 */
051 public void setAuthor(String n) {
052 author = n;
053 }
054 /**
055 * Returns name of the author/maintainer of this book.
056 * @return a <code>String</code> value
057 */
058 public String getAuthor() {
059 return author;
060 }
061 /**
062 * Sets textual description of this book's contents.
063 * @param n a <code>String</code> value
064 */
065 public void setDescription(String n) {
066 description = n;
067 }
068 /**
069 * Returns textual description of this book's contents.
070 * @return a <code>String</code> value
071 */
072 public String getDescription() {
073 return description;
074 }
075
076 }