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
- Direct Known Subclasses:
PasswordXMLElementType
,StringXSLElementType
public class StringXMLElementType extends AbstractStringElementType implements XMLElementType<String>
Class for string XML element type
-
-
Constructor Summary
Constructors Constructor Description StringXMLElementType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
readValueFromNode(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, castValue, fromJSONForClient, isSimple, passwordValueToJSONForClient, toString
-
Methods inherited from class org.ametys.core.model.type.AbstractElementType
_compareMultipleValues, _getValueAttributes, _isValueFromXMLMultiple, _singleValueFromXML, _singleValueToJSON, _singleValueToSAX, compareValues, getManagedClass, getManagedClassArray, isCompatible, parseConfiguration, valueFromXML, valueToJSONForClient, valueToSAX
-
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.ElementType
castValue, compareValues, fromJSONForClient, getManagedClass, getManagedClassArray, isCompatible, isSimple, parseConfiguration, toString, valueFromXML, valueToJSONForClient, valueToSAX
-
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.runtime.model.type.xml.XMLElementType
read, write
-
-
-
-
Constructor Detail
-
StringXMLElementType
public StringXMLElementType()
-
-
Method Detail
-
readValueFromNode
public Object readValueFromNode(Configuration elementConfiguration) throws ConfigurationException
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
-
-