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.booleanisELParameter(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:ElementAttributeValueParserDoes 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:
getParameterValuein 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:
ElementAttributeValueParserExceptionObjectConverterException- See Also:
-
getConvertedParameterValue
public Object getConvertedParameterValue(String name, Object value, Element element) throws ElementAttributeValueParserException, ObjectConverterException Description copied from interface:ElementAttributeValueParserConvert the value into a new value genereted by parameterConverters.- Specified by:
getConvertedParameterValuein 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:
ObjectConverterExceptionElementAttributeValueParserException- See Also:
-
getELParameterValue
public Object getELParameterValue(String value, Element element) throws ElementAttributeValueParserException Description copied from interface:ElementAttributeValueParserReturns the object which is stored in the ELContext- Specified by:
getELParameterValuein 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:ElementAttributeValueParserChecks if the value is an EL parameter.- Specified by:
isELParameterin 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:
-