Server.Literature Class Reference

Inheritance diagram for Server.Literature:

Inheritance graph
[legend]
Collaboration diagram for Server.Literature:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Literature (int id, Person creator, string title, string author, string summary, string source, string isbn, DateTime date, LiteratureType type)
 This class represents a piece of literature in the system. An instance of Literature holds various information.

Static Public Member Functions

static Literature FromInfo (LiteratureInfo pi, Person p)
 Returns an instance of Literature containing the information in the LiteratureInfo struct passed as an argument.

Properties

List< CommentComments [get]
 Returns a list of the attached comments to this literature.
List< ReferenceReferences [get]
 Returns a list of references to this literature.
string ISBN [get, set]
 Gets or sets the isbn.
string Source [get, set]
 Gets or sets the source.
string Summary [get, set]
 Gets or sets the summary.
LiteratureType Type [get, set]
 Gets or sets the type of literature.
string Title [get, set]
 Gets or sets the title.
string Author [get, set]
 Gets or sets the author.
Person Creator [get, set]
 Gets or sets the creator of this instance of Literature.
DateTime Date [get, set]
 Gets or sets the time of creation,.
LiteratureInfo Info [get]
 Returns a LiteratureInfo struct containing the information of this instance of literature.

Private Attributes

string author
string title
LiteratureType type
string summary
string source
string isbn
DateTime date
List< Commentcomments
Person creator
List< Referencereferences

Detailed Description

Definition at line 12 of file Literature.cs.


Constructor & Destructor Documentation

Server.Literature.Literature ( int  id,
Person  creator,
string  title,
string  author,
string  summary,
string  source,
string  isbn,
DateTime  date,
LiteratureType  type 
)

This class represents a piece of literature in the system. An instance of Literature holds various information.

Parameters:
id The unique id.
creator The instance of Person who created this literature.
title The title of the literature.
author The aurhor of the literature.
summary A summary of the literature.
source The source of the literature. E.g. Internet or library.
isbn The isbn of the literature.
date The date the literature is added. A DateTime.
type The type of literature. A LiteratureType enumeration.

Definition at line 37 of file Literature.cs.

References Server.Literature.creator.

Referenced by Server.Literature.FromInfo().

Here is the caller graph for this function:


Member Function Documentation

static Literature Server.Literature.FromInfo ( LiteratureInfo  pi,
Person  p 
) [static]

Returns an instance of Literature containing the information in the LiteratureInfo struct passed as an argument.

Parameters:
pi 
p 
Returns:

Definition at line 158 of file Literature.cs.

References Shared.LiteratureInfo.author, Shared.LiteratureInfo.date, Shared.LiteratureInfo.id, Server.Literature.isbn, Shared.LiteratureInfo.isbn, Server.Literature.Literature(), Shared.LiteratureInfo.source, Server.Literature.summary, Shared.LiteratureInfo.summary, Shared.LiteratureInfo.title, and Shared.LiteratureInfo.type.

Here is the call graph for this function:


Property Documentation

List<Comment> Server.Literature.Comments [get]

Returns a list of the attached comments to this literature.

Definition at line 56 of file Literature.cs.

Referenced by Server.Test.PersistentDataTest.TestDatabase().

List<Reference> Server.Literature.References [get]

Returns a list of references to this literature.

Definition at line 64 of file Literature.cs.

string Server.Literature.ISBN [get, set]

Gets or sets the isbn.

Definition at line 72 of file Literature.cs.

Referenced by Server.Data.XmlData.LoadLiterature().

string Server.Literature.Source [get, set]

Gets or sets the source.

Definition at line 81 of file Literature.cs.

Referenced by Server.Data.XmlData.LoadLiterature().

string Server.Literature.Summary [get, set]

Gets or sets the summary.

Definition at line 90 of file Literature.cs.

Referenced by Server.Data.XmlData.LoadLiterature().

LiteratureType Server.Literature.Type [get, set]

Gets or sets the type of literature.

Definition at line 99 of file Literature.cs.

Referenced by Server.Data.XmlData.LoadLiterature().

string Server.Literature.Title [get, set]

Gets or sets the title.

Definition at line 108 of file Literature.cs.

Referenced by Server.Data.XmlData.LoadLiterature().

string Server.Literature.Author [get, set]

Gets or sets the author.

Definition at line 117 of file Literature.cs.

Referenced by Server.Data.XmlData.LoadLiterature().

Person Server.Literature.Creator [get, set]

Gets or sets the creator of this instance of Literature.

Definition at line 126 of file Literature.cs.

Referenced by Server.Data.XmlData.LoadLiterature().

DateTime Server.Literature.Date [get, set]

Gets or sets the time of creation,.

Definition at line 135 of file Literature.cs.

Referenced by Server.Data.XmlData.LoadLiterature().

LiteratureInfo Server.Literature.Info [get]

Returns a LiteratureInfo struct containing the information of this instance of literature.

Definition at line 144 of file Literature.cs.

Referenced by Server.Test.PersistentDataTest.TestDatabase().


The documentation for this class was generated from the following file:
Generated on Thu Dec 21 06:24:58 2006 for SCRAML by  doxygen 1.5.1-p1