jcolibri.extensions.recommendation.navigationByProposing
Class CritiqueOption
java.lang.Object
jcolibri.extensions.recommendation.navigationByProposing.CritiqueOption
public class CritiqueOption
- extends java.lang.Object
Utility object to encapsulte information about the user's critique to an attribute.
It stores: the critiqued attribute, the label shown to the user and the FilterPredicate
that implements the critique.
- Version:
- 1.0
- Author:
- Juan A. Recio-Garcia, Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
- See Also:
FilterPredicate
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CritiqueOption
public CritiqueOption(java.lang.String label,
Attribute attribute,
FilterPredicate predicate)
- Creates a new critiqueOption
- Parameters:
label
- attribute
- predicate
-
getAttribute
public Attribute getAttribute()
- Returns:
- Returns the attribute.
setAttribute
public void setAttribute(Attribute attribute)
- Parameters:
attribute
- The attribute to set.
getLabel
public java.lang.String getLabel()
- Returns:
- Returns the label.
setLabel
public void setLabel(java.lang.String label)
- Parameters:
label
- The label to set.
getPredicate
public FilterPredicate getPredicate()
- Returns:
- Returns the predicate.
setPredicate
public void setPredicate(FilterPredicate predicate)
- Parameters:
predicate
- The predicate to set.