|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.property.ICalProperty
biweekly.property.RequestStatus
public class RequestStatus
Represents a response to a scheduling request, describing whether the request was successfully processed or not.
Each property instance has a status code. The following status code families are defined:
Examples:
RequestStatus requestStatus = new RequestStatus("2.0"); requestStatus.setDescription("Success");
Field Summary |
---|
Fields inherited from class biweekly.property.ICalProperty |
---|
parameters |
Constructor Summary | |
---|---|
RequestStatus(String statusCode)
Creates a request status property. |
Method Summary | |
---|---|
String |
getDescription()
Gets the human-readable description of the status. |
String |
getExceptionText()
Gets any additional data related to the response. |
String |
getLanguage()
Gets the language that the property value is written in. |
String |
getStatusCode()
Gets the status code. |
void |
setDescription(String description)
Sets a human-readable description of the status. |
void |
setExceptionText(String exceptionText)
Sets any additional data related to the response. |
void |
setLanguage(String language)
Sets the language that the property value is written in. |
void |
setStatusCode(String statusCode)
Sets a status code. |
protected void |
validate(List<ICalComponent> components,
List<String> warnings)
Checks the property for data consistency problems or deviations from the spec. |
Methods inherited from class biweekly.property.ICalProperty |
---|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestStatus(String statusCode)
statusCode
- the status code (e.g. "1.1.3")Method Detail |
---|
public String getStatusCode()
public void setStatusCode(String statusCode)
statusCode
- the status code (e.g. "1.1.3")public String getDescription()
public void setDescription(String description)
description
- the description (e.g. "Success") or null to removepublic String getExceptionText()
public void setExceptionText(String exceptionText)
exceptionText
- the additional data or null to removepublic String getLanguage()
ICalProperty
public void setLanguage(String language)
ICalProperty
language
- the language (e.g. "en" for English) or null to removeprotected void validate(List<ICalComponent> components, List<String> warnings)
ICalProperty
validate
in class ICalProperty
components
- the hierarchy of components that the property belongs
towarnings
- the list to add the warnings to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |