com.opera.core.systems.arguments
Enum OperaArgument.OperaArgumentSign

java.lang.Object
  extended by java.lang.Enum<OperaArgument.OperaArgumentSign>
      extended by com.opera.core.systems.arguments.OperaArgument.OperaArgumentSign
All Implemented Interfaces:
Serializable, Comparable<OperaArgument.OperaArgumentSign>
Enclosing class:
OperaArgument

public static enum OperaArgument.OperaArgumentSign
extends Enum<OperaArgument.OperaArgumentSign>

Holds definitions for prepended signs for arguments in various styles. Available signs are GNU_SIGN, POSIX_SIGN and WINDOWS_SIGN.

See Also:
OperaArguments

Enum Constant Summary
GNU_SIGN
          The GNU sign consists of two dashes, --.
POSIX_SIGN
          The POSIX sign consists of one dash, -.
WINDOWS_SIGN
          The WINDOWS sign consists of a slash, /.
 
Method Summary
 String getValue()
          Gets the string representation value of the specified sign.
static OperaArgument.OperaArgumentSign valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OperaArgument.OperaArgumentSign[] 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

GNU_SIGN

public static final OperaArgument.OperaArgumentSign GNU_SIGN
The GNU sign consists of two dashes, --.


POSIX_SIGN

public static final OperaArgument.OperaArgumentSign POSIX_SIGN
The POSIX sign consists of one dash, -.


WINDOWS_SIGN

public static final OperaArgument.OperaArgumentSign WINDOWS_SIGN
The WINDOWS sign consists of a slash, /.

Method Detail

values

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

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

valueOf

public static OperaArgument.OperaArgumentSign 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

getValue

public String getValue()
Gets the string representation value of the specified sign.

Returns:
the sign


Copyright © 2012. All Rights Reserved.