public interface ModifiableModelLessDataHolder extends ModifiableDataHolder, ModelLessDataHolder
Modifier and Type | Method and Description |
---|---|
ModifiableModelLessComposite |
getComposite(String compositePath)
Retrieves the composite at the given path
|
ModifiableModelLessComposite |
getComposite(String compositePath,
boolean createNew)
Retrieves the composite at the given path
|
ModifiableModelLessRepeater |
getRepeater(String repeaterPath)
Retrieves the repeater at the given path
|
ModifiableModelLessRepeater |
getRepeater(String repeaterPath,
boolean createNew)
Retrieves the repeater at the given path
|
void |
removeValue(String dataPath)
Removes the value of the data stored in the repository at the given path
|
void |
setValue(String dataPath,
Object value)
Sets the value of the data at the given path
|
void |
setValue(String dataPath,
Object value,
String dataTypeId)
Sets the value of the data at the given path
|
getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, isMultiple, toSAX, toSAX
copyTo, dataToSAX, dataToSAX, dataToSAX, dataToSAX, getDataNames
ModifiableModelLessComposite getComposite(String compositePath) throws IllegalArgumentException, BadItemTypeException, BadDataPathCardinalityException
DataHolder
getComposite
in interface DataHolder
getComposite
in interface ModelLessDataHolder
getComposite
in interface ModifiableDataHolder
compositePath
- path of the composite to retrievenull
if not existsIllegalArgumentException
- if the given composite path is null or emptyBadItemTypeException
- if the value stored in the repository at the given path is not a compositeBadDataPathCardinalityException
- if the value of a part of the data path is multiple. Only the last part can be multipleModifiableModelLessRepeater getRepeater(String repeaterPath) throws IllegalArgumentException, BadItemTypeException, BadDataPathCardinalityException
DataHolder
getRepeater
in interface DataHolder
getRepeater
in interface ModelLessDataHolder
getRepeater
in interface ModifiableDataHolder
repeaterPath
- path of the repeater to retrievenull
if not existsIllegalArgumentException
- if the given repeater path is null or emptyBadItemTypeException
- if the value stored in the repository at the given path is not a repeaterBadDataPathCardinalityException
- if the value of a part of the data path is multiple. Only the last part can be multipleModifiableModelLessComposite getComposite(String compositePath, boolean createNew) throws IllegalArgumentException, BadItemTypeException, BadDataPathCardinalityException
getComposite
in interface ModifiableDataHolder
compositePath
- path of the composite to retrievecreateNew
- true
to create the composite if it does not exist, false
otherwiseBadDataPathCardinalityException
- if the value of a part of the data path is multiple. Only the last part can be multipleIllegalArgumentException
- if the given composite path is null or emptyBadItemTypeException
- if the value stored in the repository at the given path is not a compositeModifiableModelLessRepeater getRepeater(String repeaterPath, boolean createNew) throws IllegalArgumentException, BadItemTypeException, BadDataPathCardinalityException
getRepeater
in interface ModifiableDataHolder
repeaterPath
- path of the repeater to retrievecreateNew
- true
to create the repeater if it does not exist, false
otherwiseBadDataPathCardinalityException
- if the value of a part of the data path is multiple. Only the last part can be multipleIllegalArgumentException
- if the given repeater path is null or emptyBadItemTypeException
- if the value stored in the repository at the given path is not a repeatervoid setValue(String dataPath, Object value) throws IllegalArgumentException, UnknownTypeException, NotUniqueTypeException, UnknownDataException, BadDataPathCardinalityException
dataPath
- path of the datavalue
- the value to setIllegalArgumentException
- if the given data path is null or emptyUnknownTypeException
- if there is no available type compatible with the given value for this data holder's type extension pointNotUniqueTypeException
- if there is more than one available types compatibles with the given value for this data holder's type extension pointUnknownDataException
- if given the data path is composed of an inexisting groupBadDataPathCardinalityException
- if the value of a part of the data path is multiple. Only the last part can be multiplevoid setValue(String dataPath, Object value, String dataTypeId) throws IllegalArgumentException, UnknownTypeException, BadItemTypeException, UnknownDataException, BadDataPathCardinalityException
dataPath
- path of the datavalue
- the value to setdataTypeId
- type identifier of the dataIllegalArgumentException
- if the given data path is null or emptyUnknownTypeException
- if the given type is not available for this data holder's type extension pointBadItemTypeException
- if the given type doesn't match the given value to setUnknownDataException
- if the given data path is composed of an inexisting groupBadDataPathCardinalityException
- if the value of a part of the data path is multiple. Only the last part can be multiplevoid removeValue(String dataPath) throws IllegalArgumentException, UnknownDataException, BadDataPathCardinalityException
removeValue
in interface ModifiableDataHolder
dataPath
- path of the dataBadDataPathCardinalityException
- if the value of a part of the data path is multiple. Only the last part can be multipleIllegalArgumentException
- if the given data path is null or emptyUnknownDataException
- if the value at the given data path does not exist