public class ComplexOption
extends java.lang.Object
| Constructor and Description |
|---|
ComplexOption() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the contents of the set
|
boolean |
containsKey(java.lang.String sName)
Test if this complex options contains a specific option name
|
void |
copy(java.lang.String sName,
java.util.Map<java.lang.String,java.lang.String> attributes)
Define a key using a copy of a the provided attributes.
|
void |
copyAll(ComplexOption co)
Copy all values from another
ComplexOption
(overwrites existing values) |
java.util.Map<java.lang.String,java.lang.String> |
get(java.lang.String sName)
Get the value belonging to a key
|
java.util.Set<java.lang.String> |
keySet()
Get the names of all options that are currently defined by this complex option
|
void |
put(java.lang.String sName,
java.util.Map<java.lang.String,java.lang.String> attributes)
Define a key.
|
void |
remove(java.lang.String sName)
Remove an option from the set, if it exists
|
public void clear()
public void remove(java.lang.String sName)
sName - the name of the key to removepublic void put(java.lang.String sName,
java.util.Map<java.lang.String,java.lang.String> attributes)
sName - the name of the key. The name must be non-empty, otherwise the request will be ignored.attributes - public void copy(java.lang.String sName,
java.util.Map<java.lang.String,java.lang.String> attributes)
sName - the name of the key. The name must be non-empty, otherwise the request will be ignored.attributes - public java.util.Map<java.lang.String,java.lang.String> get(java.lang.String sName)
sName - the name of the keypublic void copyAll(ComplexOption co)
ComplexOption
(overwrites existing values)co - another instance of ComplexOptionpublic java.util.Set<java.lang.String> keySet()
Setpublic boolean containsKey(java.lang.String sName)
sName - the name to test