Package org.opennms.web.notification
Enum SortStyle
- java.lang.Object
- 
- java.lang.Enum<SortStyle>
- 
- org.opennms.web.notification.SortStyle
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<SortStyle>
 
 public enum SortStyle extends Enum<SortStyle> Convenience class to determine sort style of a query.- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- ranger
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description IDINTERFACELOCATIONNODENODE_LOCATIONPAGETIMERESPONDERRESPONDTIMEREVERSE_IDREVERSE_INTERFACEREVERSE_LOCATIONREVERSE_NODEREVERSE_NODE_LOCATIONREVERSE_PAGETIMEREVERSE_RESPONDERREVERSE_RESPONDTIMEREVERSE_SERVICEREVERSE_SEVERITYSERVICESEVERITY
 - 
Field SummaryFields Modifier and Type Field Description static SortStyleDEFAULT_SORT_STYLEConstantDEFAULT_SORT_STYLE
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()getNameprotected StringgetOrderByClause()Convenience method for getting the SQL ORDER BY clause related to a given sort style.StringgetShortName()getShortNamestatic SortStylegetSortStyle(String sortStyleString)getSortStyleStringtoString()toStringstatic SortStylevalueOf(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- 
LOCATIONpublic static final SortStyle LOCATION 
 - 
RESPONDERpublic static final SortStyle RESPONDER 
 - 
PAGETIMEpublic static final SortStyle PAGETIME 
 - 
RESPONDTIMEpublic static final SortStyle RESPONDTIME 
 - 
NODEpublic static final SortStyle NODE 
 - 
NODE_LOCATIONpublic static final SortStyle NODE_LOCATION 
 - 
INTERFACEpublic static final SortStyle INTERFACE 
 - 
SERVICEpublic static final SortStyle SERVICE 
 - 
IDpublic static final SortStyle ID 
 - 
SEVERITYpublic static final SortStyle SEVERITY 
 - 
REVERSE_LOCATIONpublic static final SortStyle REVERSE_LOCATION 
 - 
REVERSE_RESPONDERpublic static final SortStyle REVERSE_RESPONDER 
 - 
REVERSE_PAGETIMEpublic static final SortStyle REVERSE_PAGETIME 
 - 
REVERSE_RESPONDTIMEpublic static final SortStyle REVERSE_RESPONDTIME 
 - 
REVERSE_NODEpublic static final SortStyle REVERSE_NODE 
 - 
REVERSE_NODE_LOCATIONpublic static final SortStyle REVERSE_NODE_LOCATION 
 - 
REVERSE_INTERFACEpublic static final SortStyle REVERSE_INTERFACE 
 - 
REVERSE_SERVICEpublic static final SortStyle REVERSE_SERVICE 
 - 
REVERSE_IDpublic static final SortStyle REVERSE_ID 
 - 
REVERSE_SEVERITYpublic static final SortStyle REVERSE_SEVERITY 
 
- 
 - 
Field Detail- 
DEFAULT_SORT_STYLEpublic static final SortStyle DEFAULT_SORT_STYLE ConstantDEFAULT_SORT_STYLE
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic static SortStyle valueOf(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:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
toStringpublic String toString() toString 
 
- 
 
-