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, hashCodedataToSAX, dataToSAX, dataToSAX, dataToSAX, getComposite, getRepeater, toSAX, toSAXDataHolder getDataHolder()
DataHolder of this AmetysObject.DataHolder of this AmetysObjectdefault boolean hasValue(String dataPath) throws IllegalArgumentException
DataHolderhasValue in interface DataHolderdataPath - 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()
DataHoldergetDataNames in interface DataHolderdefault void copyTo(ModifiableDataHolder dataHolder) throws UndefinedItemPathException, BadItemTypeException, UnknownTypeException, NotUniqueTypeException
DataHolderDataHolder to the given ModifiableModelAwareDataHolder.copyTo in interface DataHolderdataHolder - The destination dataHolder. Can not be null.UndefinedItemPathException - if one of the copied data is not defined by the model of the destination ModifiableModelAwareDataHolderBadItemTypeException - 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 ModifiableModelLessDataHolderNotUniqueTypeException - if there is more than one available types compatibles with the copied value for the type extension point of the destination ModifiableModelLessDataHolder