|
|
|
|
org.eclipse.jst.jsf.taglibprocessing.attributevalues
Class BooleanType
java.lang.Object
org.eclipse.jst.jsf.metadataprocessors.AbstractMetaDataEnabledFeature
org.eclipse.jst.jsf.metadataprocessors.AbstractRootTypeDescriptor
org.eclipse.jst.jsf.taglibprocessing.attributevalues.AbstractEnumerationType
org.eclipse.jst.jsf.taglibprocessing.attributevalues.EnumerationType
org.eclipse.jst.jsf.taglibprocessing.attributevalues.BooleanType
-
All Implemented Interfaces:
-
IDefaultValue,
IPossibleValues,
IValidELValues,
IValidValues,
IMetaDataEnabledFeature,
ITypeDescriptor
-
public class BooleanType
- extends
EnumerationType
- implements
IValidValues,
IPossibleValues,
IDefaultValue
Meta-data processing type representing a boolean attribute value runtime type
that implements IPossibleValues, IValidValues, IDefaultValue, IValidELValues
Provisional API - subject to change
Method Summary
|
java.util.List
|
getPossibleValues
()
|
boolean
|
isValidValue
(java.lang.String value)
Type coercion according to JSP 2.0 spec: JSP.1.14.2.1 Conversions from String values
Although not completely faithful to spec, we will validate values as either 'true' or 'false' |
Methods inherited from class java.lang.Object
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
BooleanType
public BooleanType()
getPossibleValues
public java.util.List getPossibleValues()
-
-
Specified by:
-
getPossibleValues
in interface
IPossibleValues
-
-
Returns:
- List of IPossibleValue instances representing possible values
Implementer must ensure that an empty rather than null list is returned if no values are posssible.
isValidValue
public boolean isValidValue(java.lang.String value)
- Type coercion according to JSP 2.0 spec: JSP.1.14.2.1 Conversions from String values
Although not completely faithful to spec, we will validate values as either 'true' or 'false'
-
-
Specified by:
-
isValidValue
in interface
IValidValues
-
-
Parameters:
-
value - fully resolved value as String
-
Returns:
- true if is valid
-
See Also:
-
IValidValues.isValidValue(java.lang.String)
|
|
|