|
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.
Field Summary | |
---|---|
static String |
ARG_ARGS
Generic option for the transport of IArgs. |
Method Summary | |
---|---|
void |
add(Object object)
|
void |
clear()
|
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 . |
Object |
get(String name,
Object defaultValue)
The argument named name or the defaultValue if not
available. |
boolean |
isDefined(int index)
true if an argument at index is defined. |
boolean |
isDefined(String name)
true if an argument named name is defined. |
boolean |
isIndexed()
true if this argument list is indexed. |
boolean |
isNamed()
true if this argument list is named. |
Set |
names()
The set of all argument names in the argument list if this argument list is not indexed or null. |
void |
put(int index,
Object value)
|
void |
put(String name,
Object value)
|
int |
size()
The total number of arguments. |
Field Detail |
---|
static final String ARG_ARGS
Method Detail |
---|
void add(Object object)
void clear()
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.
index
Object get(String name)
name
.
name
- The name of the argument to return.
name
.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.
name
boolean isDefined(int index)
true
if an argument at index
is defined.
index
-
true
if an argument at index
is
defined.boolean isDefined(String name)
true
if an argument named name
is defined.
name
-
true
if an argument named name
is
defined.boolean isIndexed()
true
if this argument list is indexed. This means its
elements are available via integer indexes.
This does NOT mean the arguments are not available via names - there are implementations that can support both.
true
if this argument list is indexed.boolean isNamed()
true
if this argument list is named. This means its
elements are available via names.
This does NOT mean the arguments are not available via indexes - there are implementations that can support both.
true
if this argument list is named.Set names()
void put(int index, Object value)
void put(String name, Object value)
int size()
|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |