org.opennms.web.outage
Enum OutageType
java.lang.Object
java.lang.Enum<OutageType>
org.opennms.web.outage.OutageType
- All Implemented Interfaces:
- Serializable, Comparable<OutageType>
public enum OutageType
- extends Enum<OutageType>
CURRENT
public static final OutageType CURRENT
RESOLVED
public static final OutageType RESOLVED
BOTH
public static final OutageType BOTH
SUPPRESSED
public static final OutageType SUPPRESSED
values
public static OutageType[] 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 (OutageType c : OutageType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OutageType 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()
- Overrides:
toString in class Enum<OutageType>
getName
public String getName()
getShortName
public String getShortName()
getClause
protected String getClause()
- Convenience method for getting the SQL ORDER BY clause related
to a given sort style.
- Parameters:
outType - the outage type to map to a clause
getOutageType
public static OutageType getOutageType(String outageTypeString)
Copyright © 2009. All Rights Reserved.