Package de.intarsys.tools.functor
Interface IArgs
- All Known Implementing Classes:
Args,ChainedArgs,DeclaredArgs,EmptyArgs
public interface IArgs
The arguments for executing an
IFunctor implementation.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()get(int index) The argument at positionindex.The argument at positionindexThe argument namedname.The argument namednameor the defaultValue if not available.booleanisDefined(int index) trueif an argument atindexis defined.booleantrueif an argument namednameis defined.booleantrueif this argument list is indexed.booleanisNamed()trueif this argument list is named.names()The set of all argument names in the argument list if this argument list is not indexed or null.voidvoidintsize()The total number of arguments.
-
Field Details
-
ARG_ARGS
Generic option for the transport of IArgs.- See Also:
-
-
Method Details
-
add
-
clear
void clear() -
get
The argument at positionindex.- Parameters:
index- The index of the argument to return.- Returns:
- The argument at position
index.
-
get
The argument at positionindex- Parameters:
index- The index of the argument to return.defaultValue- The default value to be returned if argument is not available.- Returns:
- The argument at position
index
-
get
The argument namedname.- Parameters:
name- The name of the argument to return.- Returns:
- The argument named
name.
-
get
The argument namednameor the defaultValue if not available.- Parameters:
name- The name of the argument to return.defaultValue- The default value to be returned if argument is not available.- Returns:
- The argument named
name
-
isDefined
boolean isDefined(int index) trueif an argument atindexis defined.- Parameters:
index-- Returns:
trueif an argument atindexis defined.
-
isDefined
trueif an argument namednameis defined.- Parameters:
name-- Returns:
trueif an argument namednameis defined.
-
isIndexed
boolean isIndexed()trueif 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.
- Returns:
trueif this argument list is indexed.
-
isNamed
boolean isNamed()trueif 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.
- Returns:
trueif this argument list is named.
-
names
The set of all argument names in the argument list if this argument list is not indexed or null.- Returns:
- The set of all argument names in the argument list if this argument list is not indexed or null.
-
put
-
put
-
size
int size()The total number of arguments.- Returns:
- The total number of arguments.
-