package gw.rating.rtm.valueprovider uses gw.rating.rtm.domain.PersistenceAdapter uses gw.rating.rtm.domain.table.RateTableCell uses java.util.Map /** * An implementation of an empty value provider. * It does not support any optional attributes. */ class UnboundValueProvider extends RateTableCellValueProvider { construct(column : RateTableColumn) { super(column) } /** * Returns an empty array. */ override function getValues(adapter : PersistenceAdapter) : String[] { return {} } /** * Always returns the code itself. */ override function valueByCode(adapter : PersistenceAdapter, code : String) : String { return code } /** * Always return true - any code is valid. */ override function containsCodeFor(cell : RateTableCell) : boolean { return true } /** * Always returns false. */ override property get HasCodedValue() : boolean { return false } override function getValueMap(args : String[]) : Map { return {} } }