org.eclipse.jst.jsf.taglibprocessing.internal.provisional.attributevalues
Class EnumerationType
java.lang.Object
org.eclipse.jst.jsf.metadataprocessors.internal.provisional.AbstractMetaDataEnabledFeature
org.eclipse.jst.jsf.metadataprocessors.internal.provisional.AbstractRootTypeDescriptor
org.eclipse.jst.jsf.taglibprocessing.internal.provisional.attributevalues.EnumerationType
- All Implemented Interfaces:
- IDefaultValue, IMetaDataEnabledFeature, ITypeDescriptor, IValidELValues, IValidValues
- Direct Known Subclasses:
- BooleanType, NumberType, StringType
- public abstract class EnumerationType
- extends AbstractRootTypeDescriptor
- implements IValidValues, IDefaultValue, IValidELValues
Abstract meta-data processing type representing an enumeration attribute value runtime type
Field Summary |
protected static java.util.List |
EMPTY_LIST
|
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 |
isValidValue |
EMPTY_LIST
protected static java.util.List EMPTY_LIST
EnumerationType
public EnumerationType()
getValidationMessages
public java.util.List getValidationMessages()
- Specified by:
getValidationMessages
in interface IValidValues
- Returns:
- List of IValidationMessage objects if invalid
Must return empty list rather than null
Call to isValidValue(String value) required before this should be called.
getDefaultValue
public java.lang.String getDefaultValue()
- Specified by:
getDefaultValue
in interface IDefaultValue
- Returns:
- default value or null if one not defined
getCMPossibleValues
protected java.util.List getCMPossibleValues()
getCMPossibleValuesForDisplay
protected java.util.List getCMPossibleValuesForDisplay()
getCMValidValues
protected java.util.List getCMValidValues()
getCMValidationMessage
protected java.lang.String getCMValidationMessage()
getCMValidationSeverity
protected int getCMValidationSeverity()
getCMValidationCode
protected java.lang.String getCMValidationCode()
addNewValidationMessage
protected void addNewValidationMessage(java.lang.String defaultMsg)
getReturnType
protected abstract java.lang.String getReturnType()
- Returns:
- return Java type as string (i.e. boolean, java.lang.String, etc.)
Must not be null.
getAssignmentType
protected int getAssignmentType()
getExpectedRuntimeType
public org.eclipse.jst.jsf.core.internal.types.CompositeType getExpectedRuntimeType()
throws ELIsNotValidException
- Specified by:
getExpectedRuntimeType
in interface IValidELValues
- Throws:
ELIsNotValidException