Package pyxb :: Package binding :: Module facets
[hide private]
[frames] | no frames]

Module facets

source code

Classes related to XMLSchema facets.

The definitions herein are from sections 4.2 and 4.3 of XML Schema Part 2: Datatypes. Facets are attributes of a datatype that constrain its lexical and value spaces.

Classes [hide private]
  Facet
The base class for facets.
  ConstrainingFacet
One of the facets defined in section 4.3, which provide constraints on the lexical space of a type definition.
  _LateDatatype_mixin
Marker class to indicate that the facet instance must be told its datatype when it is constructed.
  _Fixed_mixin
Mix-in to a constraining facet that adds support for the 'fixed' property.
  _CollectionFacet_mixin
Mix-in to handle facets whose values are collections, not scalars.
  CF_length
A facet that specifies the length of the lexical representation of a value.
  CF_minLength
A facet that constrains the length of the lexical representation of a value.
  CF_maxLength
A facet that constrains the length of the lexical representation of a value.
  _PatternElement
This class represents individual patterns that appear within a CF_pattern collection.
  CF_pattern
A facet that constrains the lexical representation of a value to match one of a set of patterns.
  _EnumerationElement
This class represents individual values that appear within a CF_enumeration collection.
  CF_enumeration
Capture a constraint that restricts valid values to a fixed set.
  _Enumeration_mixin
Marker class to indicate that the generated binding has enumeration members.
  _WhiteSpace_enum
The enumeration used to constrain the whiteSpace facet
  CF_whiteSpace
Specify the value-space interpretation of whitespace.
  CF_minInclusive
Specify the minimum legal value for the constrained type.
  CF_maxInclusive
Specify the maximum legal value for the constrained type.
  CF_minExclusive
Specify the exclusive lower bound of legal values for the constrained type.
  CF_maxExclusive
Specify the exclusive upper bound of legal values for the constrained type.
  CF_totalDigits
Specify the number of digits in the *value* space of the type.
  CF_fractionDigits
Specify the number of sub-unit digits in the *value* space of the type.
  FundamentalFacet
A fundamental facet provides information on the value space of the associated type.
  FF_equal
Specifies that the associated type supports a notion of equality.
  FF_ordered
Specifies that the associated type supports a notion of order.
  FF_bounded
Specifies that the associated type supports a notion of bounds.
  FF_cardinality
Specifies that the associated type supports a notion of length.
  FF_numeric
Specifies that the associated type represents a number.
Variables [hide private]
  _log = logging.getLogger(__name__)
  __package__ = 'pyxb.binding'