public class PathListEntry extends java.lang.Object implements java.lang.Comparable<PathListEntry>
PathListEntry
encapsulates a ILearningPath
for usage in the paths list.Constructor and Description |
---|
PathListEntry(org.tencompetence.business.model.learningpath.ILearningPath path,
java.util.List<Gap> gaps)
Instantiates a new path data.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PathListEntry that) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCoverage()
Gets the coverage description.
|
org.tencompetence.business.model.learningpath.ILearningPath |
getPath()
Gets the path.
|
boolean |
getSelected()
Gets the selected indicator.
|
java.lang.String |
getTitle()
Gets the title.
|
java.lang.String |
getUri()
Gets the uri.
|
int |
hashCode() |
boolean |
isPartOfPlan()
Checks if the path is part of the learning plan.
|
boolean |
isSubscribed()
Checks if the user is subscribed to the path.
|
boolean |
providesLevel(Gap gap)
Checks if the plan covers the gap by providing at least the required competence level.
|
void |
setPartOfPlan(boolean partOfPlan)
Sets the part of plan.
|
void |
setSelected(boolean value)
Sets the selected.
|
public PathListEntry(org.tencompetence.business.model.learningpath.ILearningPath path, java.util.List<Gap> gaps)
path
- the pathgaps
- the gapspublic java.lang.String getTitle()
public java.lang.String getCoverage()
This description indicates the number of covered open gaps and the total number of covered gaps.
public boolean getSelected()
public boolean isSubscribed()
public boolean isPartOfPlan()
public void setPartOfPlan(boolean partOfPlan)
partOfPlan
- the new part of planpublic boolean providesLevel(Gap gap)
gap
- the gap to checkpublic void setSelected(boolean value)
value
- the new selectedpublic org.tencompetence.business.model.learningpath.ILearningPath getPath()
public java.lang.String getUri()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(PathListEntry that)
compareTo
in interface java.lang.Comparable<PathListEntry>