com.opera.core.systems.arguments
Class OperaArgument

java.lang.Object
  extended by com.opera.core.systems.arguments.OperaArgument

public class OperaArgument
extends Object

OperaArgument represents a single argument in a command-line argument list, typically represented by OperaArguments.


Nested Class Summary
static class OperaArgument.OperaArgumentSign
          Holds definitions for prepended signs for arguments in various styles.
 
Constructor Summary
OperaArgument(String argument)
          Creates a new argument with no value.
OperaArgument(String argument, String value)
          Creates a new argument with a value.
 
Method Summary
 String getArgument()
          Gets the string representation of the argument without any prepended signs.
 String getValue()
          Gets the value of the argument if it exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperaArgument

public OperaArgument(String argument)
Creates a new argument with no value. The attribute argument should not contain any argument signs (dashes) as this will be prepended later depending on which implementation of OperaArguments you use.

Parameters:
argument - the argument to create, without any prepended signs

OperaArgument

public OperaArgument(String argument,
                     String value)
Creates a new argument with a value. The attribute attribute should not contain any argument signs (dashes) as this will be prepended later depending on which implementation of OperaArguments you use.

Parameters:
argument - the argument to create, without any prepended signs
value - the value of the argument
Method Detail

getArgument

public String getArgument()
Gets the string representation of the argument without any prepended signs.

Returns:
the argument

getValue

public String getValue()
Gets the value of the argument if it exists.

Returns:
value of argument, null if there is no value


Copyright © 2012. All Rights Reserved.