|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.preferences.PreferencesArgs
public class PreferencesArgs
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface de.intarsys.tools.functor.IArgs |
|---|
IArgs.IBinding |
| Field Summary |
|---|
| Fields inherited from interface de.intarsys.tools.functor.IArgs |
|---|
ARG_ARGS |
| Constructor Summary | |
|---|---|
PreferencesArgs(IPreferences preferences)
|
|
| 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. |
boolean |
isIndexed()
|
boolean |
isNamed()
|
Set |
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. |
String |
toString()
|
void |
undefine(int index)
Undefine the binding at index. |
void |
undefine(String name)
Undefine the binding for name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PreferencesArgs(IPreferences preferences)
| Method Detail |
|---|
public IArgs.IBinding add(Object object)
IArgs
add in interface IArgspublic Iterator<IArgs.IBinding> bindings()
IArgsIterator over all available bindings.
bindings in interface IArgsIterator over all available bindings.public void clear()
IArgs
clear in interface IArgspublic IArgs copy()
IArgs
copy in interface IArgspublic IArgs.IBinding declare(String name)
IArgs
declare in interface IArgspublic Object get(int index)
IArgsindex.
get in interface IArgsindex - The index of the argument to return.
index.
public Object get(int index,
Object defaultValue)
IArgsindex
get in interface IArgsindex - The index of the argument to return.defaultValue - The default value to be returned if argument is not available.
indexpublic Object get(String name)
IArgsname or null if not available.
get in interface IArgsname - The name of the argument to return.
name or null if not available.
public Object get(String name,
Object defaultValue)
IArgsname or the defaultValue if not
available.
get in interface IArgsname - The name of the argument to return.defaultValue - The default value to be returned if argument is not available.
namepublic boolean isDefined(String name)
IArgstrue if an argument named name is defined.
isDefined in interface IArgstrue if an argument named name is
defined.public boolean isIndexed()
public boolean isNamed()
public Set names()
IArgs
names in interface IArgs
public IArgs.IBinding put(int index,
Object value)
throws UnsupportedOperationException
IArgs
put in interface IArgsUnsupportedOperationException
public IArgs.IBinding put(String name,
Object value)
throws UnsupportedOperationException
IArgs
put in interface IArgsUnsupportedOperationExceptionpublic int size()
IArgs
size in interface IArgspublic String toString()
toString in class Object
public void undefine(int index)
throws UnsupportedOperationException
IArgs
undefine in interface IArgsUnsupportedOperationException
public void undefine(String name)
throws UnsupportedOperationException
IArgs
undefine in interface IArgsUnsupportedOperationException
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||