|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.ogsadai.client.toolkit.activity.misc.NotificationType
An enumerated notification type - notify on commencement, completion or do not notify.
Field Summary | |
static NotificationType |
COMMENCED
Notify on commencement of processing. |
private static java.lang.String |
COMMENCED_STRING
The string used to represent COMMENCED type. |
static NotificationType |
COMPLETE
Notify on completion of processing. |
private static java.lang.String |
COMPLETE_STRING
The string used to represent COMPLETE type. |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mType
The current type. |
static NotificationType |
NONE
Do not notify. |
private static java.lang.String |
NONE_STRING
The string used to represent NONE type. |
Constructor Summary | |
private |
NotificationType(java.lang.String type)
Create a NotificationType of the specified type. |
Method Summary | |
java.lang.String |
getAsString()
Return the notification type as a string - either none , commenced or
complete . |
boolean |
isCommenced()
Is the current notification type notification on commencement of processing? |
boolean |
isComplete()
Is the current notification type notification on completion of processing? |
boolean |
isNone()
Is the current notification type no notification? |
void |
setCommenced()
Set the notification type to be notification on commencement of processing. |
void |
setComplete()
Set the notification type to be notification on completion of processing. |
void |
setNone()
Set the notification type to be no notification. |
void |
setType(java.lang.String type)
Set the notification type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final java.lang.String NONE_STRING
private static final java.lang.String COMMENCED_STRING
private static final java.lang.String COMPLETE_STRING
public static final NotificationType NONE
public static final NotificationType COMMENCED
public static final NotificationType COMPLETE
private java.lang.String mType
Constructor Detail |
private NotificationType(java.lang.String type)
NotificationType
of the specified type.
type
- One of NotificationType.NONE_STRING
for
no notification,
NotificationType.COMMENCED_STRING
for
notification on commencement of processing or
NotificationType.COMPLETE_STRING
for
notification on completion of processing.
java.lang.IllegalArgumentException
- if type
is not one of the three above.Method Detail |
public void setType(java.lang.String type)
type
- One of NotificationType.NONE_STRING
for
no notification,
NotificationType.COMMENCED_STRING
for
notification on commencement of processing or
NotificationType.COMPLETE_STRING
for
notification on completion of processing.
java.lang.IllegalArgumentException
- if type
is not one of the three above.public void setNone()
public void setCommenced()
public void setComplete()
public boolean isNone()
true
if type
is
NONE_STRING
.public boolean isCommenced()
true
if type
is
COMMENCED_STRING
.public boolean isComplete()
true
if type
is
COMPLETE_STRING
.public java.lang.String getAsString()
none
, commenced
or
complete
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |