Class: InterMine::PathQuery::LookupConstraint

Inherits:
ListConstraint show all
Defined in:
lib/intermine/query.rb

Direct Known Subclasses

TemplateLookupConstraint

Constant Summary

Constants inherited from SingleValueConstraint

SingleValueConstraint::CANONICAL_OPS

Instance Attribute Summary collapse

Attributes inherited from SingleValueConstraint

#value

Attributes included from Coded

#code, #op

Attributes included from PathFeature

#path

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ObjectConstraint

#validate

Methods inherited from SingleValueConstraint

#validate

Methods included from AttributeConstraint

#coerce_value, #validate, #validate_value

Methods included from PathFeature

#validate

Instance Attribute Details

#extra_valueObject

Returns the value of attribute extra_value.



1306
1307
1308
# File 'lib/intermine/query.rb', line 1306

def extra_value
  @extra_value
end

Class Method Details

.valid_opsObject



1308
1309
1310
# File 'lib/intermine/query.rb', line 1308

def self.valid_ops
    return ["LOOKUP"]
end

Instance Method Details

#to_elemObject



1312
1313
1314
1315
1316
1317
1318
# File 'lib/intermine/query.rb', line 1312

def to_elem
    elem = super
    if @extra_value
        elem.add_attribute("extraValue", @extra_value)
    end
    return elem
end