Class StringXMLElementType
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.model.type.AbstractModelItemType
org.ametys.core.model.type.AbstractElementType<String>
org.ametys.core.model.type.AbstractStringElementType
org.ametys.plugins.core.impl.model.type.xml.StringXMLElementType
- All Implemented Interfaces:
ElementType<String>
,ModelItemType
,XMLElementType<String>
,LogEnabled
,PluginAware
,Component
,Serviceable
- Direct Known Subclasses:
PasswordXMLElementType
,StringXSLElementType
public class StringXMLElementType
extends AbstractStringElementType
implements XMLElementType<String>
Class for string XML element type
-
Field Summary
Fields inherited from class org.ametys.core.model.type.AbstractElementType
_jsonUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreadValueFromNode
(Configuration elementConfiguration) Read the value in the given XML configuration (the node directly, not the parent configuration)Methods inherited from class org.ametys.core.model.type.AbstractStringElementType
_compareSingleValues, convertValue, fromJSONForClient, isSimple, passwordValueToJSONForClient, toString
Methods inherited from class org.ametys.core.model.type.AbstractElementType
_compareMultipleValues, _getValueAttributes, _isMultiple, _isSingle, _isValueFromXMLMultiple, _singleValueFromXML, _singleValueToJSON, _singleValueToJSONForEdition, _singleValueToSAX, _useJSONForEdition, _valueToJSON, _valueToSAX, _valueToSAX, _valueToSAXForEdition, castValue, compareValues, getManagedClass, getManagedClassArray, isCompatible, parseConfiguration, service, valueFromXML, valueToJSONForClient, valueToJSONForEdition, valueToSAX, valueToSAXForEdition
Methods inherited from class org.ametys.core.model.type.AbstractModelItemType
_getContextAttributes, 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.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
read, write
-
Constructor Details
-
StringXMLElementType
public StringXMLElementType()
-
-
Method Details
-
readValueFromNode
Read the value in the given XML configuration (the node directly, not the parent configuration)} The value is a string, so the default value is an empty string if it can not be read- Specified by:
readValueFromNode
in interfaceXMLElementType<String>
- Parameters:
elementConfiguration
- XML configuration node containing the value- Returns:
- the value
- Throws:
ConfigurationException
- if an error occurs while reading the given configuration
-