Interface XSLElementType<T>
- Type Parameters:
T
- Type of the parameter value
- All Superinterfaces:
ElementType<T>
,ModelItemType
,PluginAware
,XMLElementType<T>
- All Known Implementing Classes:
BooleanXSLElementType
,DoubleXSLElementType
,LongXSLElementType
,StringXSLElementType
Interfaces for XSL parameter types
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
read
(Configuration parentConfiguration, String name) Read the value in the given XML configurationdefault void
write
(ContentHandler contentHandler, String name, Object value) Write the value into the given content handlerMethods inherited from interface org.ametys.runtime.model.type.ElementType
castValue, compareValues, fromJSONForClient, getManagedClass, getManagedClassArray, isCompatible, isSimple, parseConfiguration, toString, valueFromXML, valueToJSONForClient, valueToJSONForEdition
Methods inherited from interface org.ametys.runtime.model.type.ModelItemType
getId, valueToSAX, valueToSAX, valueToSAXForEdition
Methods inherited from interface org.ametys.runtime.plugin.component.PluginAware
setPluginInfo
Methods inherited from interface org.ametys.runtime.model.type.xml.XMLElementType
readValueFromNode
-
Field Details
-
ELEMENT_NAME
XML element name. It is made public because we are in an interface and multiple extend is not possible.- See Also:
-
-
Method Details
-
read
Description copied from interface:XMLElementType
Read the value in the given XML configuration- Specified by:
read
in interfaceXMLElementType<T>
- Parameters:
parentConfiguration
- XML configuration containing the valuename
- the name of the element to read- Returns:
- the value
- Throws:
ConfigurationException
- if an error occurs while reading the given configuration
-
write
Description copied from interface:XMLElementType
Write the value into the given content handler- Specified by:
write
in interfaceXMLElementType<T>
- Parameters:
contentHandler
- the content handler where to SAX into.name
- the name of the element to writevalue
- the value to write- Throws:
SAXException
- if an errors occurs during the value writing
-