|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OperaArguments
Defines a joint interface for interacting with arguments to various kinds of Operas.
OperaArguments represents a command-line argument list and contains individual arguments
represented by OperaArgument's.
, com.opera.core.systems.runner.arguments.OperaCoreArguments,
OperaArgument| Method Summary | |
|---|---|
void |
add(OperaArgument argument)
Adds a new argument to the command-line argument list representation. |
void |
add(String argument)
Adds a new argument to the command-line argument list representation. |
void |
add(String argument,
String value)
Adds a new argument with a value to the command-line argument list representation. |
OperaArgument |
get(int index)
Convenience method to access the given indexed argument in the command-line list representation. |
List<OperaArgument> |
getArguments()
Gets the list of all arguments, each represented by OperaArgument. |
List<String> |
getArgumentsAsStringList()
Gets all arguments as a string list, including the argument's values. |
Iterator<OperaArgument> |
iterator()
Gets an iterator for all arguments present in this collection. |
OperaArguments |
merge(OperaArguments extraArguments)
Merge this command-line list representation with another representation. |
String |
sign()
Gets the command-line argument sign used by this implementation of OperaArguments. |
int |
size()
Fetches the number of arguments in the command-line list representation. |
String |
toString()
Gets the string representation of the command-line, as it would be used externally. |
| Method Detail |
|---|
void add(String argument)
OperaArgument will be created with an empty value.
argument - the argument key to add
void add(String argument,
String value)
OperaArgument will be created with specified value.
argument - the argument key to addvalue - the value the argument should holdvoid add(OperaArgument argument)
OperaArgument can optionally hold a value.
argument - the argument to addOperaArgument get(int index)
OperaArguments.getArguments().get(x).
index - the argument to fetch
List<OperaArgument> getArguments()
OperaArgument.
Iterator<OperaArgument> iterator()
iterator in interface Iterable<OperaArgument>List<String> getArgumentsAsStringList()
String toString()
toString in class Objectint size()
OperaArguments.getArguments().size().
OperaArguments merge(OperaArguments extraArguments)
OperaArguments
object.
extraArguments - the OperaArguments to merge into this
String sign()
OperaArguments.
Depending on which implementation (OperaCoreArguments,
OperaDesktopArguments) you are using, you will get a
OperaArgument.OperaArgumentSign.
OperaArgument.OperaArgumentSign
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||