|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.Question.State
public static class Question.State
Type-safe enumeration for the state a question is in. Values are:
open -- the question is not resolved.
possibly_resolved -- there are one or more possible answers
to the question. The question creator should mark the question as resolved
or still open.
assumed_resolved -- the question is answered, but the question
creator has not indicated that the question is resolved. This might happen
when a support agent posts a definitive answer for the question. Or, when
the question creator fails to mark the question as resolved and a moderator
wants to indicate that the question is resolved.
resolved -- the question is answered. Only the question creator can
set the question state to this value.
| Field Summary | |
|---|---|
static Question.State |
assumed_resolved
The question is answered, but the question creator has not indicated that the question is resolved. |
static Question.State |
open
The question is not resolved. |
static Question.State |
possibly_resolved
There are one or more possible answers to the question. |
static Question.State |
resolved
The question is answered. |
| Method Summary | |
|---|---|
int |
compareTo(Question.State s)
|
int |
getCode()
Returns the integer code associated with the state. |
java.lang.String |
toString()
|
static Question.State |
valueOf(int code)
Returns the State associated with the specified integer code. |
static Question.State |
valueOf(java.lang.String state)
Returns the State associated with the specified String value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Question.State open
public static final Question.State possibly_resolved
public static final Question.State assumed_resolved
public static final Question.State resolved
| Method Detail |
|---|
public static Question.State valueOf(java.lang.String state)
state - the State's String value.
public static Question.State valueOf(int code)
code - the State's code value.
public int getCode()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(Question.State s)
compareTo in interface java.lang.Comparable<Question.State>
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||