public interface NamedValueProperty extends Property
Modifier and Type | Method and Description |
---|---|
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.
|
getDocumentation, getName, getType, isFixedCardinality, isMutable, setName
java.lang.Object getValue(java.lang.String name) throws StructuralException
name
- Name of a value of this propertyStructuralException
- 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 valueStructuralException
- if !isMutablevoid setValue(java.lang.Object value) throws StructuralException
value
- New value of the value, from which the Property can automaticall
determine the nameStructuralException
- if !isNamedAutomatically() or !isMutablevoid removeValue(java.lang.String name) throws StructuralException
name
- Name of value to removeStructuralException
- if isFixedCardinality()java.util.List<java.lang.String> getValueNames()