public class Response
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
ACCEPTED |
static int |
FINALIZED |
static int |
OVERRIDDEN |
static int |
REJECTED |
static java.lang.String[] |
RESPONSES |
static int |
UNSEEN |
Constructor and Description |
---|
Response()
Creates an empty Response
|
Response(boolean acceptance,
java.lang.String comment)
Creates a Response with given acceptance and comment values
|
Modifier and Type | Method and Description |
---|---|
void |
accept()
set the value of this response to be accepted
|
void |
finalize()
set the value of this response to be finalized
|
java.lang.String |
getComment()
returns the comment for this response
|
int |
getValue()
returns the value of the response (5 different types)
|
boolean |
isAccepted()
returns true if the response is accepted
|
boolean |
isFinalized()
returns true if the response is finalized
|
boolean |
isOverridden()
returns true if the response is overriden
|
boolean |
isRejected()
returns true if the response is rejected
|
boolean |
isUnseen()
returns true if the response is unseen
|
void |
override()
set the value of this response to be overridden
|
void |
reject(java.lang.String comment)
set the value of this response to be rejected, and sets the comment explaining why
|
void |
reset()
resents the response to Unseen and to a blank comment
|
boolean |
sameAs(Response response)
returns true if two responses are the same type i.e.
|
void |
setComment(java.lang.String comment)
sets the comment fot this response
|
void |
setFrom(Response response)
sets the response based on another response's value and comment
|
void |
setValue(int v)
sets the value of the response (5 different types)
|
java.lang.String |
toString()
Prints the Response
|
void |
unseen()
set the value of this response to be unseen
|
public static final int UNSEEN
public static final int ACCEPTED
public static final int REJECTED
public static final int OVERRIDDEN
public static final int FINALIZED
public static final java.lang.String[] RESPONSES
public Response()
public Response(boolean acceptance, java.lang.String comment)
acceptance
- comment
- public java.lang.String toString()
toString
in class java.lang.Object
public int getValue()
public void setValue(int v)
public void accept()
public void reject(java.lang.String comment)
comment
- public void override()
public void finalize()
finalize
in class java.lang.Object
public void unseen()
public void setComment(java.lang.String comment)
comment
- public java.lang.String getComment()
public void reset()
public boolean isAccepted()
public boolean isUnseen()
public boolean isOverridden()
public boolean isRejected()
public boolean isFinalized()
public void setFrom(Response response)
response
- public boolean sameAs(Response response)
response
-