cz.muni.fi.pclis.domain.learningExpectations
Class ExpectationPoint

java.lang.Object
  extended by cz.muni.fi.pclis.commons.domain.DomainObject
      extended by cz.muni.fi.pclis.domain.learningExpectations.ExpectationPoint
All Implemented Interfaces:
Comparable<ExpectationPoint>

public class ExpectationPoint
extends DomainObject
implements Comparable<ExpectationPoint>

Entity representing expectation point User: Ľuboš Pecho Date: 6.9.2009 Time: 11:06:08


Field Summary
private  String body
          Body of the expectation point
private  Course course
          Course in which was the point created
private  Byte evaluation
          Evaluation of the expectation point
private  String evaluationComment
          Evaluation comment of the expectation point
private  Term term
          Term in which was the point created
private  String title
          Title of the expectation point
private  User user
          Author of the expectation point
 
Constructor Summary
ExpectationPoint()
           
 
Method Summary
 int compareTo(ExpectationPoint o)
          Compare to points by their title
 String getBody()
           
 Course getCourse()
           
 Byte getEvaluation()
           
 String getEvaluationComment()
           
 Term getTerm()
           
 String getTitle()
           
 User getUser()
          Returns author of the expectation point
 void setBody(String body)
          Sets the body
 void setCourse(Course course)
          Sets the course
 void setEvaluation(Byte evaluation)
          Sets the evaluation
 void setEvaluationComment(String evaluationComment)
          Sets the evaluation comment
 void setTerm(Term term)
          Sets the term
 void setTitle(String title)
          Sets the title
 void setUser(User user)
          Sets the author of the expectation point
 
Methods inherited from class cz.muni.fi.pclis.commons.domain.DomainObject
equals, getId, hashCode, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user

private User user
Author of the expectation point


term

private Term term
Term in which was the point created


course

private Course course
Course in which was the point created


title

private String title
Title of the expectation point


body

private String body
Body of the expectation point


evaluation

private Byte evaluation
Evaluation of the expectation point


evaluationComment

private String evaluationComment
Evaluation comment of the expectation point

Constructor Detail

ExpectationPoint

public ExpectationPoint()
Method Detail

getUser

public User getUser()
Returns author of the expectation point

Returns:
user

setUser

public void setUser(User user)
Sets the author of the expectation point

Parameters:
user -

getTerm

public Term getTerm()
Returns:
term

setTerm

public void setTerm(Term term)
Sets the term

Parameters:
term -

getCourse

public Course getCourse()
Returns:
course

setCourse

public void setCourse(Course course)
Sets the course

Parameters:
course -

getTitle

public String getTitle()
Returns:
title

setTitle

public void setTitle(String title)
Sets the title

Parameters:
title -

getBody

public String getBody()
Returns:
body

setBody

public void setBody(String body)
Sets the body

Parameters:
body -

getEvaluation

public Byte getEvaluation()
Returns:
evaluation

setEvaluation

public void setEvaluation(Byte evaluation)
Sets the evaluation

Parameters:
evaluation -

getEvaluationComment

public String getEvaluationComment()
Returns:
evaluation comment

setEvaluationComment

public void setEvaluationComment(String evaluationComment)
Sets the evaluation comment

Parameters:
evaluationComment -

compareTo

public int compareTo(ExpectationPoint o)
Compare to points by their title

Specified by:
compareTo in interface Comparable<ExpectationPoint>
Parameters:
o -
Returns:


Copyright © 2009-2010 Faculty of Informatics, Masaryk university, Brno. All Rights Reserved.