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

# type _ValueConstraint_mixin

source code

    object --+
             |
       cscRoot --+
                 |
                _ValueConstraint_mixin

Known Subclasses:
  - AttributeDeclaration
  - , AttributeUse
  - , ElementDeclaration

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__`

Class Variables | [hide private]
| VC_na = `0`
| VC_default = `1`
| VC_fixed = `2`
| __valueConstraint = `None`
| _ValueConstraint_mixin__valueConstraint = `None`

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.