org.apache.wink.common.model.app
Enum AppYesNo
java.lang.Object
java.lang.Enum<AppYesNo>
org.apache.wink.common.model.app.AppYesNo
- All Implemented Interfaces:
- Serializable, Comparable<AppYesNo>
public enum AppYesNo
- extends Enum<AppYesNo>
An enum for specifying the value of a "fixed" attribute of the app:categories
element
Enum Constant Summary |
NO
|
YES
|
YES
public static final AppYesNo YES
NO
public static final AppYesNo NO
values
public static AppYesNo[] 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 (AppYesNo c : AppYesNo.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AppYesNo 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
value
public String value()
toString
public String toString()
- Overrides:
toString
in class Enum<AppYesNo>
fromValue
public static AppYesNo fromValue(String v)
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.