Package org.ametys.core.model.type
Class AbstractModelItemType
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.model.type.AbstractModelItemType
-
- All Implemented Interfaces:
ModelItemType
,LogEnabled
,PluginAware
- Direct Known Subclasses:
AbstractElementType
,CompositeRepositoryModelItemType
,RepeaterRepositoryModelItemType
public abstract class AbstractModelItemType extends AbstractLogEnabled implements ModelItemType
Abstract class for model group item types
-
-
Constructor Summary
Constructors Constructor Description AbstractModelItemType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AttributesImpl
_getContextAttributes(DataContext context, boolean saxModel)
Retrieves the attributes of the context value to SAXString
getId()
Retrieves the identifier of the parameter typevoid
setPluginInfo(String pluginName, String featureName, String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.-
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
valueToSAX, valueToSAX, valueToSAXForEdition
-
-
-
-
Constructor Detail
-
AbstractModelItemType
public AbstractModelItemType()
-
-
Method Detail
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAware
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
getId
public String getId()
Description copied from interface:ModelItemType
Retrieves the identifier of the parameter type- Specified by:
getId
in interfaceModelItemType
- Returns:
- the identifier of the parameter type
-
_getContextAttributes
protected AttributesImpl _getContextAttributes(DataContext context, boolean saxModel)
Retrieves the attributes of the context value to SAX- Parameters:
context
- The context of the data to SAXsaxModel
-true
to sax the context model attributes- Returns:
- the attributes
-
-