org.opennms.web.outage
Enum SortStyle

java.lang.Object
  extended by java.lang.Enum<SortStyle>
      extended by org.opennms.web.outage.SortStyle
All Implemented Interfaces:
Serializable, Comparable<SortStyle>

public enum SortStyle
extends Enum<SortStyle>

SortStyle class.

Since:
1.8.1
Version:
$Id: $
Author:
ranger

Enum Constant Summary
ID
           
IFLOSTSERVICE
           
IFREGAINEDSERVICE
           
INTERFACE
           
NODE
           
REVERSE_ID
           
REVERSE_IFLOSTSERVICE
           
REVERSE_IFREGAINEDSERVICE
           
REVERSE_INTERFACE
           
REVERSE_NODE
           
REVERSE_SERVICE
           
SERVICE
           
 
Field Summary
static SortStyle DEFAULT_SORT_STYLE
          Constant DEFAULT_SORT_STYLE
 
Method Summary
 String getName()
          getName
protected  String getOrderByClause()
          Convenience method for getting the SQL ORDER BY clause related to a given sort style.
 String getShortName()
          getShortName
static SortStyle getSortStyle(String sortStyleString)
          getSortStyle
 String toString()
          toString
static SortStyle valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NODE

public static final SortStyle NODE

INTERFACE

public static final SortStyle INTERFACE

SERVICE

public static final SortStyle SERVICE

IFLOSTSERVICE

public static final SortStyle IFLOSTSERVICE

IFREGAINEDSERVICE

public static final SortStyle IFREGAINEDSERVICE

ID

public static final SortStyle ID

REVERSE_NODE

public static final SortStyle REVERSE_NODE

REVERSE_INTERFACE

public static final SortStyle REVERSE_INTERFACE

REVERSE_SERVICE

public static final SortStyle REVERSE_SERVICE

REVERSE_IFLOSTSERVICE

public static final SortStyle REVERSE_IFLOSTSERVICE

REVERSE_IFREGAINEDSERVICE

public static final SortStyle REVERSE_IFREGAINEDSERVICE

REVERSE_ID

public static final SortStyle REVERSE_ID
Field Detail

DEFAULT_SORT_STYLE

public static final SortStyle DEFAULT_SORT_STYLE
Constant DEFAULT_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(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

toString

public String toString()

toString

Overrides:
toString in class Enum<SortStyle>
Returns:
a String object.

getName

public String getName()

getName

Returns:
a String object.

getShortName

public String getShortName()

getShortName

Returns:
a String object.

getSortStyle

public static SortStyle getSortStyle(String sortStyleString)

getSortStyle

Parameters:
sortStyleString - a String object.
Returns:
a SortStyle object.

getOrderByClause

protected String getOrderByClause()
Convenience method for getting the SQL ORDER BY clause related to a given sort style.

Returns:
a String object.


Copyright © 2011. All Rights Reserved.