|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IArgs
The arguments for executing an IFunctor implementation.
| Nested Class Summary | |
|---|---|
static interface |
IArgs.IBinding
A binding between an index or name and a value in an IArgs
object. |
| Field Summary | |
|---|---|
static String |
ARG_ARGS
Generic argument name for the transport of IArgs. |
| Method Summary | |
|---|---|
IArgs.IBinding |
add(Object object)
Add an indexed value. |
Iterator<IArgs.IBinding> |
bindings()
An Iterator over all available bindings. |
void |
clear()
Clear all bindings. |
IArgs |
copy()
Create a copy. |
IArgs.IBinding |
declare(String name)
Declare a name for a binding. |
Object |
get(int index)
The argument at position index. |
Object |
get(int index,
Object defaultValue)
The argument at position index |
Object |
get(String name)
The argument named name or null if not available. |
Object |
get(String name,
Object defaultValue)
The argument named name or the defaultValue if not
available. |
boolean |
isDefined(String name)
true if an argument named name is defined. |
Set<String> |
names()
The set of all argument names in the argument list if this argument list is not indexed or null. |
IArgs.IBinding |
put(int index,
Object value)
Define an indexed binding for value. |
IArgs.IBinding |
put(String name,
Object value)
Define a named binding for value. |
int |
size()
The total number of arguments. |
void |
undefine(int index)
Undefine the binding at index. |
void |
undefine(String name)
Undefine the binding for name. |
| Field Detail |
|---|
static final String ARG_ARGS
| Method Detail |
|---|
IArgs.IBinding add(Object object)
object - Iterator<IArgs.IBinding> bindings()
Iterator over all available bindings.
Iterator over all available bindings.void clear()
IArgs copy()
IArgs.IBinding declare(String name)
name -
Object get(int index)
index.
index - The index of the argument to return.
index.
Object get(int index,
Object defaultValue)
index
index - The index of the argument to return.defaultValue - The default value to be returned if argument is not available.
indexObject get(String name)
name or null if not available.
name - The name of the argument to return.
name or null if not available.
Object get(String name,
Object defaultValue)
name or the defaultValue if not
available.
name - The name of the argument to return.defaultValue - The default value to be returned if argument is not available.
nameboolean isDefined(String name)
true if an argument named name is defined.
name -
true if an argument named name is
defined.Set<String> names()
IArgs.IBinding put(int index,
Object value)
index - value -
IArgs.IBinding put(String name,
Object value)
name - value - int size()
void undefine(int index)
index - void undefine(String name)
name -
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||