Data Model version 2.1.2

Attribute: isDefaultVar


    Is this ChemCompVar the default for its linking? Or, in other words, is this the ChemCompVar to use by default when creating a MolResidue with this particular molType, ccpCode, and linking?
    Note that
    myChemComp.findAllChemCompVars(linking=x,isDefaultVar=True)

    will return either one object or none for any value of x.

guid: www.ccpn.ac.uk_Fogh_2006-08-16-18:23:23_00031
Type: Boolean
Multiplicity: 1..1
Changeability: changeable
isDerived: False
isAutomatic: False
isImplementation: False
isImplicit: False
isAbstract: False
Scope: instance_level
Default Value: False

Constraint name:

only_true_for_one_ChemCompVar_with_each_linking
python code isValid = True
if value:
  if [x for x in self.chemComp.findAllChemCompVars(linking=self.linking)
         if x.isDefaultVar and x is not self]:
    isValid = False

Methods

Method Return Parameters Comment
getIsDefaultVar Boolean -
setIsDefaultVar - Boolean
  Data Model Version 2.1.2
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Fri Mar 28 11:18:04 2014    from data model package  ccp.api.molecule.ChemComp.ChemCompVar   revision ?  
  Work done by the CCPN team.
www.ccpn.ac.uk