org.eclipse.jst.jsf.taglibprocessing.internal.provisional.attributevalues
Class StringType

java.lang.Object
  extended byorg.eclipse.jst.jsf.metadataprocessors.internal.provisional.AbstractMetaDataEnabledFeature
      extended byorg.eclipse.jst.jsf.metadataprocessors.internal.provisional.AbstractRootTypeDescriptor
          extended byorg.eclipse.jst.jsf.taglibprocessing.internal.provisional.attributevalues.EnumerationType
              extended byorg.eclipse.jst.jsf.taglibprocessing.internal.provisional.attributevalues.StringType
All Implemented Interfaces:
IDefaultValue, IMetaDataEnabledFeature, IPossibleValues, ITypeDescriptor, IValidELValues, IValidValues

public class StringType
extends EnumerationType
implements IValidValues, IPossibleValues, IDefaultValue

Meta-data processing type representing a String attribute value runtime type that implements IPossibleValues, IValidValues and IDefaultValues


Field Summary
 
Fields inherited from class org.eclipse.jst.jsf.taglibprocessing.internal.provisional.attributevalues.EnumerationType
EMPTY_LIST
 
Fields inherited from interface org.eclipse.jst.jsf.metadataprocessors.internal.provisional.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.internal.provisional.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.internal.provisional.features.IDefaultValue
DEFAULT_VALUE_PROP_NAME
 
Constructor Summary
StringType()
           
 
Method Summary
 java.util.List getPossibleValues()
           
protected  java.lang.String getReturnType()
           
 boolean isValidValue(java.lang.String value)
           
 
Methods inherited from class org.eclipse.jst.jsf.taglibprocessing.internal.provisional.attributevalues.EnumerationType
addNewValidationMessage, getAssignmentType, getCMPossibleValues, getCMPossibleValuesForDisplay, getCMValidationCode, getCMValidationMessage, getCMValidationSeverity, getCMValidValues, getDefaultValue, getExpectedRuntimeType, getValidationMessages
 
Methods inherited from class org.eclipse.jst.jsf.metadataprocessors.internal.provisional.AbstractRootTypeDescriptor
findMetaDataEnabledFeaturesForThisType, getFeatureAdapters, getTypeExtension, setTypeExtension
 
Methods inherited from class org.eclipse.jst.jsf.metadataprocessors.internal.provisional.AbstractMetaDataEnabledFeature
getBundleID, getCMAnnotationContext, getCMAttributePropertyValue, getCMAttributePropertyValues, getCMSmallIcon, getImage, getStructuredDocumentContext, setBundleID, setContentModelContext, setStructuredDocumentContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jst.jsf.metadataprocessors.internal.provisional.features.IValidValues
getValidationMessages
 
Methods inherited from interface org.eclipse.jst.jsf.metadataprocessors.internal.provisional.IMetaDataEnabledFeature
getBundleID, getCMAnnotationContext, getStructuredDocumentContext, setBundleID, setContentModelContext, setStructuredDocumentContext
 
Methods inherited from interface org.eclipse.jst.jsf.metadataprocessors.internal.provisional.features.IDefaultValue
getDefaultValue
 

Constructor Detail

StringType

public StringType()
Method Detail

getReturnType

protected java.lang.String getReturnType()
Specified by:
getReturnType in class EnumerationType
Returns:
return Java type as string (i.e. boolean, java.lang.String, etc.) Must not be null.

isValidValue

public boolean isValidValue(java.lang.String value)
Specified by:
isValidValue in interface IValidValues
Returns:
true if is valid

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.