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
public interface XSLElementType<T> extends XMLElementType<T>
Interfaces for XSL parameter types
-
-
Field Summary
Fields Modifier and Type Field Description static String
ELEMENT_NAME
XML element name.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default 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 handler-
Methods inherited from interface org.ametys.runtime.model.type.ElementType
castValue, compareValues, fromJSONForClient, getManagedClass, getManagedClassArray, isCompatible, isSimple, parseConfiguration, toString, valueFromXML, valueToJSONForClient
-
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 Detail
-
ELEMENT_NAME
static final String ELEMENT_NAME
XML element name. It is made public because we are in an interface and multiple extend is not possible.- See Also:
- Constant Field Values
-
-
Method Detail
-
read
default Object read(Configuration parentConfiguration, String name) throws ConfigurationException
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
default void write(ContentHandler contentHandler, String name, Object value) throws SAXException
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
-
-