Package pyxb :: Package xmlschema :: Module structures :: Class _ValueConstraint_mixin
[hide private]
[frames] | no frames]

Class _ValueConstraint_mixin

source code

object --+    
         |    
   cscRoot --+
             |
            _ValueConstraint_mixin
Known Subclasses:

Mix-in indicating that the component contains a simple-type value that may be constrained.

Instance Methods [hide private]
 
valueConstraint(self)
A constraint on the value of the attribute or element.
source code
 
default(self)
If this instance constraints a default value, return that value; otherwise return None.
source code
 
fixed(self)
If this instance constraints a fixed value, return that value; otherwise return None.
source code
 
_valueConstraintFromDOM(self, node) source code

Inherited from cscRoot: __init__

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

Class Variables [hide private]
  VC_na = 0
  VC_default = 1
  VC_fixed = 2
  __valueConstraint = None
hash(x)
  _ValueConstraint_mixin__valueConstraint = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

valueConstraint(self)

source code 

A constraint on the value of the attribute or element.

Either None, or a pair consisting of a string in the lexical space of the typeDefinition and one of VC_default and VC_fixed.