Package intermine :: Module constraints :: Class TemplateTernaryConstraint
[hide private]
[frames] | no frames]

Class TemplateTernaryConstraint

source code

              object --+                    
                       |                    
pathfeatures.PathFeature --+                
                           |                
                  Constraint --+            
                               |            
                  object --+   |            
                           |   |            
                   LogicNode --+            
                               |            
                 CodedConstraint --+        
                                   |        
                    BinaryConstraint --+    
                                       |    
                       TernaryConstraint --+
                                           |
                              object --+   |
                                       |   |
                      TemplateConstraint --+
                                           |
                                          TemplateTernaryConstraint

Instance Methods [hide private]
 
__init__(self, *a, **d) source code
 
to_string(self)
Provide a template specific human readable representation of the constraint.
source code

Inherited from TernaryConstraint: to_dict

Inherited from CodedConstraint: __str__

Inherited from pathfeatures.PathFeature: __repr__

Inherited from LogicNode: __add__, __and__, __or__

Inherited from TemplateConstraint: get_switchable_status, separate_arg_sets, switch_off, switch_on

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from TernaryConstraint: OPS

Inherited from Constraint: child_type

Inherited from TemplateConstraint: OPTIONAL_OFF, OPTIONAL_ON, REQUIRED

Properties [hide private]

Inherited from TemplateConstraint: required, switched_off

Inherited from object: __class__

Method Details [hide private]

__init__(self, *a, **d)
(Constructor)

source code 

Constructor

Parameters:
  • path - The path to constrain. Here is must be a class, or a reference to a class.
  • op - The relationship between the path and the path provided (must be a valid operator)
  • value - The value to check other fields against.
  • extra_value - A further value for disambiguation. The meaning of this value varies by class and configuration. For example, if the class of the object is Gene, then extra_value will refer to the Organism.
  • code - The code for this constraint (default = "A")
Overrides: object.__init__
(inherited documentation)

to_string(self)

source code 

Provide a template specific human readable representation of the constraint. This method is called by repr.

Overrides: TemplateConstraint.to_string