class InterMine::PathQuery::SingleValueConstraint
Constants
- CANONICAL_OPS
Attributes
value[RW]
Public Class Methods
valid_ops()
click to toggle source
# File lib/intermine/query.rb 1191 def self.valid_ops 1192 return %w{= == > < >= <= != CONTAINS LIKE EQ NE GT LT LE GE} 1193 end
Public Instance Methods
to_elem()
click to toggle source
Calls superclass method
InterMine::PathQuery::Coded#to_elem
# File lib/intermine/query.rb 1195 def to_elem 1196 elem = super 1197 attributes = {"value" => @value} 1198 elem.add_attributes(attributes) 1199 return elem 1200 end
validate()
click to toggle source
Calls superclass method
InterMine::PathQuery::AttributeConstraint#validate
# File lib/intermine/query.rb 1202 def validate 1203 super 1204 @op = SingleValueConstraint::CANONICAL_OPS[@op] || @op 1205 @value = coerce_value(@value) 1206 validate_value(@value) 1207 end