|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.svc.repository.beans.RecommendedAnswerState
public class RecommendedAnswerState
This class holds the value of the RecommendedAnswer.state property. That property is an "enumerated" type, meaning that it has a predefined set of allowed values. Each of those values has an associated String "tag", but the values themselves are instances of this class. The instances can be retrieved by calling the getter method corresonding to the desired value. Each value is a singleton, meaning that "==" and "equals" will have the same result when testing for equlity. The following describes which getter should be used to obtain a value representing a particular tag:
Tag | Getter |
---|---|
Suggested | getSuggested() |
Helpful | getHelpful() |
Rejected | getRejected() |
Constructor Summary | |
---|---|
RecommendedAnswerState()
|
|
RecommendedAnswerState(java.lang.String pTag,
java.lang.Object pValue)
|
Method Summary | |
---|---|
static RecommendedAnswerState |
getHelpful()
Returns the instance representing the String value "Helpful" |
static RecommendedAnswerState |
getRejected()
Returns the instance representing the String value "Rejected" |
static RecommendedAnswerState |
getSuggested()
Returns the instance representing the String value "Suggested" |
java.lang.String |
toString()
Returns the String value represented by this instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RecommendedAnswerState(java.lang.String pTag, java.lang.Object pValue)
public RecommendedAnswerState()
Method Detail |
---|
public static RecommendedAnswerState getSuggested()
Returns the instance representing the String value "Suggested"
public static RecommendedAnswerState getHelpful()
Returns the instance representing the String value "Helpful"
public static RecommendedAnswerState getRejected()
Returns the instance representing the String value "Rejected"
public java.lang.String toString()
Returns the String value represented by this instance
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |