Any person interested under a deed, will, written contract or other writing constituting a contract, or whose rights, status or other legal relations are affected by a constitution, statute, municipal charter, ordinance, contract or franchise may have determined any question of construction or validity arising under any such instrument, constitution, statute, municipal charter, ordinance, contract or franchise and obtain a declaration of rights, status or other legal relations thereunder.
ORS 28.020