public interface ModifiableModelLessDataAwareAmetysObject extends ModifiableModelLessDataHolder, ModelLessDataAwareAmetysObject
AmetysObject
that can handle modifiable data.Modifier and Type | Method and Description |
---|---|
default ModifiableModelLessComposite |
getComposite(String compositePath)
Retrieves the composite at the given path
|
default ModifiableModelLessComposite |
getComposite(String compositePath,
boolean createNew)
Retrieves the composite at the given path
|
ModifiableModelLessDataHolder |
getDataHolder()
Returns the
DataHolder of this AmetysObject . |
default ModifiableModelLessRepeater |
getRepeater(String repeaterPath)
Retrieves the repeater at the given path
|
default ModifiableModelLessRepeater |
getRepeater(String repeaterPath,
boolean createNew)
Retrieves the repeater at the given path
|
default void |
removeValue(String dataPath)
Removes the value of the data stored in the repository at the given path
|
default void |
setValue(String dataPath,
Object value)
Sets the value of the data at the given path
|
default void |
setValue(String dataPath,
Object value,
String dataType)
Sets the value of the data at the given path
|
getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, isMultiple
copyTo, getDataNames
equals, getId, getName, getParent, getParentPath, getPath, hashCode
toSAX, toSAX
dataToSAX, dataToSAX, dataToSAX, dataToSAX
ModifiableModelLessDataHolder getDataHolder()
DataAwareAmetysObject
DataHolder
of this AmetysObject
.getDataHolder
in interface DataAwareAmetysObject
getDataHolder
in interface ModelLessDataAwareAmetysObject
DataHolder
of this AmetysObject
default ModifiableModelLessComposite getComposite(String compositePath) throws IllegalArgumentException, BadItemTypeException, BadDataPathCardinalityException
DataHolder
getComposite
in interface DataHolder
getComposite
in interface ModelLessDataAwareAmetysObject
getComposite
in interface ModelLessDataHolder
getComposite
in interface ModifiableDataHolder
getComposite
in interface ModifiableModelLessDataHolder
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 multipledefault ModifiableModelLessRepeater getRepeater(String repeaterPath) throws IllegalArgumentException, BadItemTypeException, BadDataPathCardinalityException
DataHolder
getRepeater
in interface DataHolder
getRepeater
in interface ModelLessDataAwareAmetysObject
getRepeater
in interface ModelLessDataHolder
getRepeater
in interface ModifiableDataHolder
getRepeater
in interface ModifiableModelLessDataHolder
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 multipledefault ModifiableModelLessComposite getComposite(String compositePath, boolean createNew) throws IllegalArgumentException, BadItemTypeException, BadDataPathCardinalityException
ModifiableModelLessDataHolder
getComposite
in interface ModifiableDataHolder
getComposite
in interface ModifiableModelLessDataHolder
compositePath
- path of the composite to retrievecreateNew
- true
to create the composite if it does not exist, false
otherwiseIllegalArgumentException
- 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 multipledefault ModifiableModelLessRepeater getRepeater(String repeaterPath, boolean createNew) throws IllegalArgumentException, BadItemTypeException, BadDataPathCardinalityException
ModifiableModelLessDataHolder
getRepeater
in interface ModifiableDataHolder
getRepeater
in interface ModifiableModelLessDataHolder
repeaterPath
- path of the repeater to retrievecreateNew
- true
to create the repeater if it does not exist, false
otherwiseIllegalArgumentException
- 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 multipledefault void setValue(String dataPath, Object value) throws IllegalArgumentException, UnknownTypeException, NotUniqueTypeException, UnknownDataException, BadDataPathCardinalityException
ModifiableModelLessDataHolder
setValue
in interface ModifiableModelLessDataHolder
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 multipledefault void setValue(String dataPath, Object value, String dataType) throws IllegalArgumentException, BadItemTypeException, UnknownDataException, BadDataPathCardinalityException
ModifiableModelLessDataHolder
setValue
in interface ModifiableModelLessDataHolder
dataPath
- path of the datavalue
- the value to setdataType
- type identifier of the dataIllegalArgumentException
- if the given data path is null or emptyBadItemTypeException
- 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 multipledefault void removeValue(String dataPath) throws IllegalArgumentException, UnknownTypeException, BadItemTypeException, BadDataPathCardinalityException
ModifiableModelLessDataHolder
removeValue
in interface ModifiableDataHolder
removeValue
in interface ModifiableModelLessDataHolder
dataPath
- path of the dataIllegalArgumentException
- if the given data path is null or emptyBadDataPathCardinalityException
- if the value of a part of the data path is multiple. Only the last part can be multipleUnknownTypeException
BadItemTypeException