Class DefaultElementAttributeValueParser
java.lang.Object
org.x4o.xml.element.DefaultElementAttributeValueParser
- All Implemented Interfaces:
ElementAttributeValueParser
public class DefaultElementAttributeValueParser
extends Object
implements ElementAttributeValueParser
An DefaultElementAttributeValueParser.
- Version:
- 1.0 Feb 16, 2007
- Author:
- Willem Cazander
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConvertedParameterValue
(String name, Object value, Element element) Convert the value into a new value genereted by parameterConverters.getELParameterValue
(String value, Element element) Returns the object which is stored in the ELContextgetParameterValue
(String name, String valueString, Element element) Does is all, Checks if value is EL parameter and lookups the object.boolean
isELParameter
(String name, String value, Element element) Checks if the value is an EL parameter.
-
Constructor Details
-
DefaultElementAttributeValueParser
public DefaultElementAttributeValueParser()
-
-
Method Details
-
getParameterValue
public Object getParameterValue(String name, String valueString, Element element) throws ElementAttributeValueParserException, ObjectConverterException Description copied from interface:ElementAttributeValueParser
Does is all, Checks if value is EL parameter and lookups the object. and converts to new object via parameter converter and return value.- Specified by:
getParameterValue
in interfaceElementAttributeValueParser
- Parameters:
name
- The name of the attribute.valueString
- The value of the attribute.element
- The element of the attribute.- Returns:
- Returns the attribute value.
- Throws:
ElementAttributeValueParserException
ObjectConverterException
- See Also:
-
getConvertedParameterValue
public Object getConvertedParameterValue(String name, Object value, Element element) throws ElementAttributeValueParserException, ObjectConverterException Description copied from interface:ElementAttributeValueParser
Convert the value into a new value genereted by parameterConverters.- Specified by:
getConvertedParameterValue
in interfaceElementAttributeValueParser
- Parameters:
name
- The name of the attribute.value
- The value of the attribute.element
- The element of the attribute.- Returns:
- Returns the converted attribute value.
- Throws:
ObjectConverterException
ElementAttributeValueParserException
- See Also:
-
getELParameterValue
public Object getELParameterValue(String value, Element element) throws ElementAttributeValueParserException Description copied from interface:ElementAttributeValueParser
Returns the object which is stored in the ELContext- Specified by:
getELParameterValue
in interfaceElementAttributeValueParser
- Parameters:
value
- The attribute value.element
- The element of the attribute.- Returns:
- Returns the resolved el parameter value.
- Throws:
ElementAttributeValueParserException
- See Also:
-
isELParameter
Description copied from interface:ElementAttributeValueParser
Checks if the value is an EL parameter.- Specified by:
isELParameter
in interfaceElementAttributeValueParser
- Parameters:
name
- The name of the attribute.value
- The value of the attribute.element
- The element of the attribute.- Returns:
- Returns true if value is EL parameter.
- See Also:
-