|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NamedValueProperty
A property that can have multiple values, each of which is indexed by a String name.
| Method Summary | |
|---|---|
java.lang.Object |
getValue(java.lang.String name)
|
java.util.List<java.lang.String> |
getValueNames()
|
boolean |
isNamedAutomatically()
|
void |
removeValue(java.lang.String name)
Removes a value by name |
void |
setValue(java.lang.Object value)
Sets an automatically-named value |
void |
setValue(java.lang.String name,
java.lang.Object value)
Sets a value by name. |
| Methods inherited from interface ca.nengo.config.Property |
|---|
getDocumentation, getName, getType, isFixedCardinality, isMutable, setName |
| Method Detail |
|---|
java.lang.Object getValue(java.lang.String name)
throws StructuralException
name - Name of a value of this property
StructuralException - if there is no value of the given nameboolean isNamedAutomatically()
void setValue(java.lang.String name,
java.lang.Object value)
throws StructuralException
name - Name of the valuevalue - New value of the value
StructuralException - if !isMutable
void setValue(java.lang.Object value)
throws StructuralException
value - New value of the value, from which the Property can automaticall
determine the name
StructuralException - if !isNamedAutomatically() or !isMutable
void removeValue(java.lang.String name)
throws StructuralException
name - Name of value to remove
StructuralException - if isFixedCardinality()java.util.List<java.lang.String> getValueNames()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||