# File lib/cgikit/api.rb, line 170
  def validate( associations, component_name, element_name, element_type )
    msg = nil
    isbind = false

    associations.each do |key, as|
      if (key == @name) 
        if (@settable == true) and (as.settable? == false) then
          msg = "'#@name' must be bound to a settable value."
        end
        isbind = true
        break
      end
    end

    if (isbind == false) and (@required == true) then
      msg = "'#@name' is a required binding."
    end

    if msg then
      raise ValidationError.new(msg, component_name, element_name, element_type)
    end
  end