xsd.SimpleTypeDefinition

The SimpleTypeDefinition class represents simple types identified by their name and target namespace attributes.

class xsd.SimpleTypeDefinition

Attributes

xsd.SimpleTypeDefinition.annotations

A sequence of Annotation components.

xsd.SimpleTypeDefinition.base_type_definition

A type definition component. Required.

xsd.SimpleTypeDefinition.context

Required if name instance attribute (see above) is absent. Otherwise must be absent. Either an AttributeDeclaration, ElementDeclaration, ComplexTypeDefinition, or a SimpleTypeDefinition.

xsd.SimpleTypeDefinition.facets

A set of Constraining Facet components.

xsd.SimpleTypeDefinition.final

A subset of {extension, restriction, list, union}.

xsd.SimpleTypeDefinition.item_type_definition

A simple type definition component. Required if variety is list, otherwise must be absent. The value of this property must be a primitive or ordinary simple type definition with variety=atomic, or an ordinary simple type definition with variety=union whose basic members are all atomic; the value must not itself be a list type (have variety=list) or have any basic members which are list types.

xsd.SimpleTypeDefinition.member_type_definitions

A sequence of primitive or ordinary SimpleTypeDefinition components. Must be present (but may be empty) if variety=union, otherwise must be absent. The sequence may contain any primitive or ordinary simple type definition, but must not contain any special type definitions.

xsd.SimpleTypeDefinition.name

An xs:NCName value. Optional.

xsd.SimpleTypeDefinition.primitive_type_definition

A simple type definition component. With one exception, required if variety is atomic, otherwise must be absent. The exception is xs:anyAtomicType, whose primitive_type_definition is absent. If non-absent, must be a primitive definition.

xsd.SimpleTypeDefinition.target_namespace

An xs:anyURI value. Optional.

xsd.SimpleTypeDefinition.variety

One of {atomic, list, union}. Required for all simple type definitions except xs:anySimpleType, in which it is absent.

Special methods

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