org.eclipse.jst.jsf.taglibprocessing.attributevalues
Class BooleanType

java.lang.Object
  extended by org.eclipse.jst.jsf.metadataprocessors.AbstractMetaDataEnabledFeature
      extended by org.eclipse.jst.jsf.metadataprocessors.AbstractRootTypeDescriptor
          extended by org.eclipse.jst.jsf.taglibprocessing.attributevalues.EnumerationType
              extended by 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


Field Summary
 
Fields inherited from interface org.eclipse.jst.jsf.metadataprocessors.features.IValidValues
VALID_VALUES_CODE_PROP_NAME, VALID_VALUES_MAX_PROP_NAME, VALID_VALUES_MESSAGE_PROP_NAME, VALID_VALUES_MIN_PROP_NAME, VALID_VALUES_PROP_NAME, VALID_VALUES_SEVERITY_PROP_NAME
 
Fields inherited from interface org.eclipse.jst.jsf.metadataprocessors.features.IPossibleValues
POSSIBLE_VALUES_FOR_DISPLAY_PROP_NAME, POSSIBLE_VALUES_PROP_NAME, POSSIBLE_VALUES_SMALL_ICON_PROP_NAME
 
Fields inherited from interface org.eclipse.jst.jsf.metadataprocessors.features.IDefaultValue
DEFAULT_VALUE_PROP_NAME
 
Constructor Summary
BooleanType()
           
 
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 org.eclipse.jst.jsf.taglibprocessing.attributevalues.EnumerationType
getDefaultValue, getExpectedRuntimeType, getValidationMessages
 
Methods inherited from class org.eclipse.jst.jsf.metadataprocessors.AbstractRootTypeDescriptor
getFeatureAdapters, getTypeExtension, setTypeExtension
 
Methods inherited from class org.eclipse.jst.jsf.metadataprocessors.AbstractMetaDataEnabledFeature
getMetaDataContext, getStructuredDocumentContext, setMetaDataContext, setStructuredDocumentContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jst.jsf.metadataprocessors.features.IValidValues
getValidationMessages
 
Methods inherited from interface org.eclipse.jst.jsf.metadataprocessors.IMetaDataEnabledFeature
getMetaDataContext, getStructuredDocumentContext, setMetaDataContext, setStructuredDocumentContext
 
Methods inherited from interface org.eclipse.jst.jsf.metadataprocessors.IMetaDataEnabledFeature
getMetaDataContext, getStructuredDocumentContext, setMetaDataContext, setStructuredDocumentContext
 
Methods inherited from interface org.eclipse.jst.jsf.metadataprocessors.features.IDefaultValue
getDefaultValue
 
Methods inherited from interface org.eclipse.jst.jsf.metadataprocessors.IMetaDataEnabledFeature
getMetaDataContext, getStructuredDocumentContext, setMetaDataContext, setStructuredDocumentContext
 

Constructor Detail

BooleanType

public BooleanType()
Method Detail

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)