Package com.rtfparserkit.rtf
Enum CommandType
- java.lang.Object
-
- java.lang.Enum<CommandType>
-
- com.rtfparserkit.rtf.CommandType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CommandType>
public enum CommandType extends java.lang.Enum<CommandType>
Enumeration of command types. See Appendix B of the RTF specification.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateCommandType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CommandType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Symbol
public static final CommandType Symbol
-
Flag
public static final CommandType Flag
-
Toggle
public static final CommandType Toggle
-
Value
public static final CommandType Value
-
Destination
public static final CommandType Destination
-
Encoding
public static final CommandType Encoding
-
-
Method Detail
-
values
public static CommandType[] 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 (CommandType c : CommandType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandType 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
-
-