Package org.w3._1999.xhtml
Enum InputType
- java.lang.Object
-
- java.lang.Enum<InputType>
-
- org.w3._1999.xhtml.InputType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InputType>
public enum InputType extends java.lang.Enum<InputType>
Java class for InputType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="InputType"> <restriction base="{http://www.w3.org/2001/XMLSchema}token"> <enumeration value="text"/> <enumeration value="password"/> <enumeration value="checkbox"/> <enumeration value="radio"/> <enumeration value="submit"/> <enumeration value="reset"/> <enumeration value="file"/> <enumeration value="hidden"/> <enumeration value="image"/> <enumeration value="button"/> </restriction> </simpleType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InputTypefromValue(java.lang.String v)java.lang.Stringvalue()static InputTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static InputType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final InputType TEXT
-
PASSWORD
public static final InputType PASSWORD
-
CHECKBOX
public static final InputType CHECKBOX
-
RADIO
public static final InputType RADIO
-
SUBMIT
public static final InputType SUBMIT
-
RESET
public static final InputType RESET
-
FILE
public static final InputType FILE
-
HIDDEN
public static final InputType HIDDEN
-
IMAGE
public static final InputType IMAGE
-
BUTTON
public static final InputType BUTTON
-
-
Method Detail
-
values
public static InputType[] 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 (InputType c : InputType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InputType 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
-
value
public java.lang.String value()
-
fromValue
public static InputType fromValue(java.lang.String v)
-
-