Package org.opennms.web.notification
Enum SortStyle
- java.lang.Object
-
- java.lang.Enum<SortStyle>
-
- org.opennms.web.notification.SortStyle
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IDINTERFACELOCATIONNODENODE_LOCATIONPAGETIMERESPONDERRESPONDTIMEREVERSE_IDREVERSE_INTERFACEREVERSE_LOCATIONREVERSE_NODEREVERSE_NODE_LOCATIONREVERSE_PAGETIMEREVERSE_RESPONDERREVERSE_RESPONDTIMEREVERSE_SERVICEREVERSE_SEVERITYSERVICESEVERITY
-
Field Summary
Fields Modifier and Type Field Description static SortStyleDEFAULT_SORT_STYLEConstantDEFAULT_SORT_STYLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()getNameprotected java.lang.StringgetOrderByClause()Convenience method for getting the SQL ORDER BY clause related to a given sort style.java.lang.StringgetShortName()getShortNamestatic SortStylegetSortStyle(java.lang.String sortStyleString)getSortStylejava.lang.StringtoString()toStringstatic SortStylevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SortStyle[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCATION
public static final SortStyle LOCATION
-
RESPONDER
public static final SortStyle RESPONDER
-
PAGETIME
public static final SortStyle PAGETIME
-
RESPONDTIME
public static final SortStyle RESPONDTIME
-
NODE
public static final SortStyle NODE
-
NODE_LOCATION
public static final SortStyle NODE_LOCATION
-
INTERFACE
public static final SortStyle INTERFACE
-
SERVICE
public static final SortStyle SERVICE
-
ID
public static final SortStyle ID
-
SEVERITY
public static final SortStyle SEVERITY
-
REVERSE_LOCATION
public static final SortStyle REVERSE_LOCATION
-
REVERSE_RESPONDER
public static final SortStyle REVERSE_RESPONDER
-
REVERSE_PAGETIME
public static final SortStyle REVERSE_PAGETIME
-
REVERSE_RESPONDTIME
public static final SortStyle REVERSE_RESPONDTIME
-
REVERSE_NODE
public static final SortStyle REVERSE_NODE
-
REVERSE_NODE_LOCATION
public static final SortStyle REVERSE_NODE_LOCATION
-
REVERSE_INTERFACE
public static final SortStyle REVERSE_INTERFACE
-
REVERSE_SERVICE
public static final SortStyle REVERSE_SERVICE
-
REVERSE_ID
public static final SortStyle REVERSE_ID
-
REVERSE_SEVERITY
public static final SortStyle REVERSE_SEVERITY
-
-
Field Detail
-
DEFAULT_SORT_STYLE
public static final SortStyle DEFAULT_SORT_STYLE
ConstantDEFAULT_SORT_STYLE
-
-
Method Detail
-
values
public static SortStyle[] 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 (SortStyle c : SortStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SortStyle 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 namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
toString
- Overrides:
toStringin classjava.lang.Enum<SortStyle>- Returns:
- a
Stringobject.
-
getName
public java.lang.String getName()
getName
- Returns:
- a
Stringobject.
-
getShortName
public java.lang.String getShortName()
getShortName
- Returns:
- a
Stringobject.
-
getSortStyle
public static SortStyle getSortStyle(java.lang.String sortStyleString)
getSortStyle
- Parameters:
sortStyleString- aStringobject.- Returns:
- a
SortStyleobject.
-
getOrderByClause
protected java.lang.String getOrderByClause()
Convenience method for getting the SQL ORDER BY clause related to a given sort style.- Returns:
- a
Stringobject.
-
-