Class DefaultModelLessComposite
java.lang.Object
org.ametys.plugins.repository.data.holder.group.impl.DefaultModelLessComposite
- All Implemented Interfaces:
DataHolder
,Composite
,ModelLessComposite
,ModelLessDataHolder
- Direct Known Subclasses:
DefaultModifiableModelLessComposite
Class for model free composites
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ModelLessDataHolder
the default implementation of aModelLessDataHolder
to useprotected RepositoryData
The repository data of the repeater entry -
Constructor Summary
ConstructorsConstructorDescriptionDefaultModelLessComposite
(ModelItemTypeExtensionPoint typeExtensionPoint, RepositoryData repositoryData, ModelLessDataHolder parent, ModelLessDataHolder root) Creates a model free composite -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the default implementation of aDataHolder
to useProvide the ModelItemTypeExtensionPoint linked with the DataHolderRetrieves the repository data used by thisDataHolder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.repository.data.holder.group.Composite
dataToJSON, dataToSAX
Methods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
dataToJSON, dataToSAX
Methods inherited from interface org.ametys.plugins.repository.data.holder.group.ModelLessComposite
copyTo, dataToJSON, dataToSAX, getComposite, getDataNames, getParentDataHolder, getRootDataHolder, getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, hasValueOrEmpty, isMultiple
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelLessDataHolder
dataToJSON, dataToSAX
-
Field Details
-
_repositoryData
The repository data of the repeater entry -
_defaultDataHolder
the default implementation of aModelLessDataHolder
to use
-
-
Constructor Details
-
DefaultModelLessComposite
public DefaultModelLessComposite(ModelItemTypeExtensionPoint typeExtensionPoint, RepositoryData repositoryData, ModelLessDataHolder parent, ModelLessDataHolder root) Creates a model free composite- Parameters:
typeExtensionPoint
- the extension point to use to get available element typesparent
- the parent of the createdDataHolder
root
- the rootDataHolder
repositoryData
- the repository data to use
-
-
Method Details
-
getRepositoryData
Description copied from interface:DataHolder
Retrieves the repository data used by thisDataHolder
- Specified by:
getRepositoryData
in interfaceDataHolder
- Returns:
- the repository data used by this
DataHolder
-
getDefaultDataHolder
Description copied from interface:Composite
Retrieves the default implementation of aDataHolder
to use- Specified by:
getDefaultDataHolder
in interfaceComposite
- Specified by:
getDefaultDataHolder
in interfaceModelLessComposite
- Returns:
- the
DataHolder
-
getModelItemTypeExtensionPoint
Description copied from interface:ModelLessDataHolder
Provide the ModelItemTypeExtensionPoint linked with the DataHolder- Specified by:
getModelItemTypeExtensionPoint
in interfaceModelLessDataHolder
- Returns:
- the extension point
-