public interface ListProperty extends Property
Modifier and Type | Method and Description |
---|---|
void |
addValue(java.lang.Object value) |
java.lang.Object |
getDefaultValue() |
int |
getNumValues() |
java.lang.Object |
getValue(int index) |
void |
insert(int index,
java.lang.Object value) |
void |
remove(int index) |
void |
setValue(int index,
java.lang.Object value) |
getDocumentation, getName, getType, isFixedCardinality, isMutable, setName
java.lang.Object getValue(int index) throws StructuralException
index
- Index of a certain single value of a multi-valued propertyStructuralException
- if the given index is out of rangevoid setValue(int index, java.lang.Object value) throws StructuralException
index
- Index of a certain single value of a multi-valued propertyvalue
- New value to replace that at the given indexStructuralException
- if the value is invalid (as in setValue) or the given index is
out of range or the Property is immutablevoid addValue(java.lang.Object value) throws StructuralException
value
- New value to be added to the end of the listStructuralException
- if the value is invalid (as in setValue) or the Property is
immutable or fixed-cardinalityint getNumValues()
void insert(int index, java.lang.Object value) throws StructuralException
index
- Index at which new value is to be insertedvalue
- New valueStructuralException
- if the value is invalid (as in setValue) or the Property is
immutable or fixed-cardinality or the index is out of rangevoid remove(int index) throws StructuralException
index
- Index of a single value of a multi-valued property that is to be removedStructuralException
- if the given index is out of range or the Property is immutable or fixed cardinalityjava.lang.Object getDefaultValue()