public interface DataAwareAmetysObject extends AmetysObject, DataHolder
AmetysObject
that can handle data.Modifier and Type | Method and Description |
---|---|
default void |
copyTo(ModifiableDataHolder dataHolder)
Copies the current
DataHolder to the given ModifiableModelAwareDataHolder . |
DataHolder |
getDataHolder()
Returns the
DataHolder of this AmetysObject . |
default Collection<String> |
getDataNames()
Retrieves the names of data contained by this data holder
|
default boolean |
hasValue(String dataPath)
Checks if there is a value for the data at the given path
|
equals, getId, getName, getParent, getParentPath, getPath, hashCode
dataToSAX, dataToSAX, dataToSAX, dataToSAX, getComposite, getRepeater, toSAX, toSAX
DataHolder getDataHolder()
DataHolder
of this AmetysObject
.DataHolder
of this AmetysObject
default boolean hasValue(String dataPath) throws IllegalArgumentException
DataHolder
hasValue
in interface DataHolder
dataPath
- path of the datatrue
if there is value for the data, false
otherwiseIllegalArgumentException
- if the given data path is null or emptydefault Collection<String> getDataNames()
DataHolder
getDataNames
in interface DataHolder
default void copyTo(ModifiableDataHolder dataHolder) throws UndefinedItemPathException, BadItemTypeException, UnknownTypeException, NotUniqueTypeException
DataHolder
DataHolder
to the given ModifiableModelAwareDataHolder
.copyTo
in interface DataHolder
dataHolder
- The destination dataHolder. Can not be null.UndefinedItemPathException
- if one of the copied data is not defined by the model of the destination ModifiableModelAwareDataHolder
BadItemTypeException
- if the type defined by the model of the destination ModifiableModelAwareDataHolder
doesn't match the copied valueUnknownTypeException
- if there is no available type compatible with the copied value for the type extension point of the destination ModifiableModelLessDataHolder
NotUniqueTypeException
- if there is more than one available types compatibles with the copied value for the type extension point of the destination ModifiableModelLessDataHolder