org.rhq.core.pluginapi.util
Enum JavaCommandLine.OptionValueDelimiter

java.lang.Object
  extended by java.lang.Enum<JavaCommandLine.OptionValueDelimiter>
      extended by org.rhq.core.pluginapi.util.JavaCommandLine.OptionValueDelimiter
All Implemented Interfaces:
Serializable, Comparable<JavaCommandLine.OptionValueDelimiter>
Enclosing class:
JavaCommandLine

public static enum JavaCommandLine.OptionValueDelimiter
extends Enum<JavaCommandLine.OptionValueDelimiter>

When parsing command line options, specifies the valid option value delimiter(s).

See Also:
JavaCommandLine.getClassOption(CommandLineOption)

Enum Constant Summary
EQUALS_SIGN
          The option value is separated from the option name by an equals sign, e.g.
WHITESPACE
          The option value is separated from the option name by whitespace (hence it is actually a separate command line argument, e.g.
 
Method Summary
static JavaCommandLine.OptionValueDelimiter valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JavaCommandLine.OptionValueDelimiter[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WHITESPACE

public static final JavaCommandLine.OptionValueDelimiter WHITESPACE
The option value is separated from the option name by whitespace (hence it is actually a separate command line argument, e.g. "-f FILE" or "--file FILE".


EQUALS_SIGN

public static final JavaCommandLine.OptionValueDelimiter EQUALS_SIGN
The option value is separated from the option name by an equals sign, e.g. "-f=FILE" or "--file=FILE".

Method Detail

values

public static JavaCommandLine.OptionValueDelimiter[] 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 (JavaCommandLine.OptionValueDelimiter c : JavaCommandLine.OptionValueDelimiter.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JavaCommandLine.OptionValueDelimiter 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


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.