class ActiveLdap::Schema::Syntaxes::Integer

def normalize_value(value)

def normalize_value(value)
  if value.is_a?(::Integer)
    value.to_s
  else
    value
  end
end

def type_cast(value)

def type_cast(value)
  return value if value.nil?
  begin
    Integer(value)
  rescue ArgumentError
    value
  end
end

def validate_normalized_value(value, original_value)

def validate_normalized_value(value, original_value)
  Integer(value)
  nil
rescue ArgumentError
  _("%s is invalid integer format") % original_value.inspect
end