no.inspera.services.pedal
Class LearningObject

java.lang.Object
  extended by no.inspera.services.pedal.LearningObject

public class LearningObject
extends java.lang.Object

A LearningObject is an entity used for learning, education or training.

Since:
20.12.2007
Version:
$Id: LearningObject.java 45074 2008-05-29 10:04:54Z naimdjon $
Author:
Naimdjon Takhirov

Constructor Summary
LearningObject(long id, java.lang.String type)
          Constructs a new LearningObject with specified id and type.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other LearningObject is "equal to" this one.
 long getId()
          Getter for Id
 java.lang.String getLearningStyle()
          Getter for learningStyle property
 java.lang.String getLevel()
          Getter for level property
 int hashCode()
          Returns a hash code value for the LearningObject.
 boolean isExample()
          Checks whether this LearningObject is example.
 boolean isExercise()
          Checks whether this LearningObject is exercise.
 boolean isTheory()
          Checks whether this LearningObject is theory.
 void setId(long id)
          Setter for id property
 void setIsExercise(java.lang.Boolean isExercise)
          Setter for isExercise property
 void setLearningStyle(java.lang.String learningStyle)
          Setter for learningStyle property
 void setLevel(java.lang.String level)
          Setter for level property
 void setType(java.lang.String type)
          Setter for type property
 java.lang.String toString()
          Returns string representation of this LearningObject
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LearningObject

public LearningObject(long id,
                      java.lang.String type)
Constructs a new LearningObject with specified id and type.

Parameters:
id - the identifier of this LearningObject.
type - the content type of this LearningObject
Method Detail

setId

public void setId(long id)
Setter for id property

Parameters:
id - new id property.

setLevel

public void setLevel(java.lang.String level)
Setter for level property

Parameters:
level - new level property

setLearningStyle

public void setLearningStyle(java.lang.String learningStyle)
Setter for learningStyle property

Parameters:
learningStyle - new learningStyle property

setType

public void setType(java.lang.String type)
Setter for type property

Parameters:
type - new type property

getId

public long getId()
Getter for Id

Returns:
Id of this LearningObject

getLevel

public java.lang.String getLevel()
Getter for level property

Returns:
level of this LearningObject

getLearningStyle

public java.lang.String getLearningStyle()
Getter for learningStyle property

Returns:
learningStyle of this LearningObject

isExample

public boolean isExample()
Checks whether this LearningObject is example.

Returns:
true if this LearningObject has examlpe as type, false otherwise

isTheory

public boolean isTheory()
Checks whether this LearningObject is theory.

Returns:
true if this LearningObject has theory as type, false otherwise

isExercise

public boolean isExercise()
Checks whether this LearningObject is exercise.

Returns:
true if this LearningObject has exercise as type, false otherwise

setIsExercise

public void setIsExercise(java.lang.Boolean isExercise)
Setter for isExercise property

Parameters:
isExercise - new value for isExercise property

toString

public java.lang.String toString()
Returns string representation of this LearningObject

Overrides:
toString in class java.lang.Object
Returns:
string representation of this LearningObject

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other LearningObject is "equal to" this one.

More specifically, if two LearningObjects have the same Id identifier they are considered equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the other LearningObject
Returns:
true if obj is equal to this object.

hashCode

public int hashCode()
Returns a hash code value for the LearningObject. This is among other things used to check the current state of the module.

Overrides:
hashCode in class java.lang.Object
Returns:
See Also:
SequencingState


Copyright © 2008 Naimdjon Takhirov (naimdjon@gmail.com). All Rights Reserved.