xsd.Facet

The xsd.Facet class is the base class for all constraining Facets, they are used to control the various aspects of simple datatypes. Constraining Facets are given a value as part of the derivation when an ordinary datatype is defined by restricting a primitive or ordinary datatype; a few constraining Facets have default values that are also provided for primitive datatypes.

class xsd.Facet

Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a NotImplementedError exception.

Attributes

xsd.Facet.builtin

Returns True if this xsd.Facet value is predefined by the XML Schema specification.

xsd.Facet.element

Returns the xml.ElementInformationItem representing this xsd.Facet schema component.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__