org.osivia.portal.api.notifications
Enum NotificationsType

java.lang.Object
  extended by java.lang.Enum<NotificationsType>
      extended by org.osivia.portal.api.notifications.NotificationsType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NotificationsType>

public enum NotificationsType
extends java.lang.Enum<NotificationsType>

Notifications types enumeration.

Author:
Cédric Krommenhoek

Enum Constant Summary
ADVICE
          Advice notifications type.
ERROR
          Error notifications type.
INFO
          Information notifications type.
SUCCESS
          Success notifications type.
WARNING
          Warning notifications type.
 
Method Summary
 java.lang.String getHtmlClass()
          Getter for htmlClass.
 int getPriority()
          Getter for priority.
static NotificationsType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NotificationsType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INFO

public static final NotificationsType INFO
Information notifications type.


ADVICE

public static final NotificationsType ADVICE
Advice notifications type.


SUCCESS

public static final NotificationsType SUCCESS
Success notifications type.


WARNING

public static final NotificationsType WARNING
Warning notifications type.


ERROR

public static final NotificationsType ERROR
Error notifications type.

Method Detail

values

public static NotificationsType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NotificationsType c : NotificationsType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NotificationsType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getHtmlClass

public java.lang.String getHtmlClass()
Getter for htmlClass.

Returns:
the htmlClass

getPriority

public int getPriority()
Getter for priority.

Returns:
the priority


Copyright © 2014. All Rights Reserved.