Package org.ametys.cms.data.type.impl
Class RepeaterRepositoryModelItemType
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.model.type.AbstractModelItemType
-
- org.ametys.cms.data.type.impl.RepeaterRepositoryModelItemType
-
- All Implemented Interfaces:
RepositoryModelItemGroupType
,RepositoryModelItemType
,ModelItemGroupType
,ModelItemType
,LogEnabled
,PluginAware
public class RepeaterRepositoryModelItemType extends AbstractModelItemType implements RepositoryModelItemGroupType
Class for repeater type
-
-
Constructor Summary
Constructors Constructor Description RepeaterRepositoryModelItemType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNodeType()
Retrieves the type of node used for this typeboolean
isCompatible(RepositoryData parentData, String name)
Checks if the value in the given repository data is compatible with the item type-
Methods inherited from class org.ametys.core.model.type.AbstractModelItemType
getId, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.runtime.model.type.ModelItemType
getId
-
Methods inherited from interface org.ametys.runtime.plugin.component.PluginAware
setPluginInfo
-
Methods inherited from interface org.ametys.plugins.repository.data.type.RepositoryModelItemGroupType
add, hasNonEmptyValue, isMultiple, read
-
-
-
-
Constructor Detail
-
RepeaterRepositoryModelItemType
public RepeaterRepositoryModelItemType()
-
-
Method Detail
-
isCompatible
public boolean isCompatible(RepositoryData parentData, String name) throws UnknownDataException
Description copied from interface:RepositoryModelItemType
Checks if the value in the given repository data is compatible with the item type- Specified by:
isCompatible
in interfaceRepositoryModelItemGroupType
- Specified by:
isCompatible
in interfaceRepositoryModelItemType
- Parameters:
parentData
- repository data containing the data to checkname
- the name of the data to check- Returns:
true
if the data type matches the current type,false
otherwise- Throws:
UnknownDataException
- if there is no data in the parent repository data with this name
-
getNodeType
public String getNodeType()
Description copied from interface:RepositoryModelItemGroupType
Retrieves the type of node used for this type- Specified by:
getNodeType
in interfaceRepositoryModelItemGroupType
- Returns:
- the type of node used for this type
-
-