org.jminor.framework.domain
Interface Property.ValueListProperty

All Superinterfaces:
Attribute, Column, Property, Property.ColumnProperty, Property.SearchableProperty
Enclosing interface:
Property

public static interface Property.ValueListProperty
extends Property.ColumnProperty

A property based on a list of values, each with a displayable caption.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jminor.framework.domain.Property
Property.AuditProperty, Property.AuditTimeProperty, Property.AuditUserProperty, Property.BlobProperty, Property.BooleanProperty, Property.ColumnProperty, Property.DenormalizedProperty, Property.DenormalizedViewProperty, Property.DerivedProperty, Property.ForeignKeyProperty, Property.MirrorProperty, Property.PrimaryKeyProperty, Property.SearchableProperty, Property.SubqueryProperty, Property.TransientProperty, Property.ValueListProperty
 
Method Summary
 String getCaption(Object value)
           
 List<Item<Object>> getValues()
           
 boolean isValid(Object value)
           
 
Methods inherited from interface org.jminor.framework.domain.Property.ColumnProperty
setColumnHasDefaultValue, setSearchable, setSelectIndex, setUpdatable
 
Methods inherited from interface org.jminor.framework.domain.Property
getDefaultValue, getEntityID, getFormat, getMax, getMaximumFractionDigits, getMaxLength, getMin, getMnemonic, getParentProperty, getPreferredColumnWidth, getPropertyID, getType, hasParentProperty, is, is, isBoolean, isCharacter, isDate, isDouble, isHidden, isInteger, isNullable, isNumerical, isReadOnly, isString, isTime, isTimestamp, isType, setDefaultValue, setDescription, setEntityID, setFormat, setHidden, setMax, setMaximumFractionDigits, setMaxLength, setMin, setMnemonic, setNullable, setParentProperty, setPreferredColumnWidth, setReadOnly, setUseNumberFormatGrouping
 
Methods inherited from interface org.jminor.common.model.Attribute
getCaption, getDescription, getTypeClass, hasDescription
 
Methods inherited from interface org.jminor.common.model.Column
columnHasDefaultValue, getColumnName, getSelectIndex, getType, isDenormalized, isSearchable, isUpdatable
 

Method Detail

isValid

boolean isValid(Object value)
Parameters:
value - the value to validate
Returns:
true if the given value exists in this value list

getValues

List<Item<Object>> getValues()
Returns:
an unmodifiable view of the available values

getCaption

String getCaption(Object value)
Parameters:
value - the value
Returns:
the caption associated with the given value