xsd.TypeDefinition¶
xsd.TypeDefinition provides a base class for xsd.SimpleTypeDefinition objects and xsd.ComplexTypeDefinition objects.
Base class: xsd.Component
-
class
xsd.TypeDefinition¶ Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedErrorexception.
Attributes¶
-
xsd.TypeDefinition.annotations¶ Returns an iterator of
xsd.Annotationcomponents.
-
xsd.Component.element Returns the
xml.ElementInformationItemrepresenting this schema component.
-
xsd.Component.id Returns the value of the ‘id’ attribute as a string, or None if the schema component’s XML element doesn’t have an ‘id’ attribute.
-
xsd.TypeDefinition.name¶ Returns the name of the
xsd.TypeDefinition.
-
xsd.TypeDefinition.qname¶ Returns a
xml.QNameobject representing the name and target_namespace pair of the component.
-
xsd.TypeDefinition.target_namespace¶ Returns the target namespace of the
xsd.TypeDefinition.
Methods¶
-
xsd.TypeDefinition.is_derived_from(TypeDefinition typeDef)¶ Returns True if this
xsd.TypeDefinitionis derived from other, False otherwise.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__