xsd.ModelGroupDefinition

A xsd.ModelGroupDefinition associates a name and optional annotations with a xsd.ModelGroup. By reference to the name, the entire xsd.ModelGroup can be incorporated by reference into a term.

Base class: xsd.Component

class xsd.ModelGroupDefinition

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

Attributes

xsd.ModelGroupDefinition.annotations

Returns an iterator of xsd.Annotation components.

xsd.Component.element

Returns the xml.ElementInformationItem representing 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.ModelGroupDefinition.model_group

Returns the xsd.ModelGroup component for which the xsd.ModelGroupDefinition provides a name.

xsd.ModelGroupDefinition.name

Returns the name of the xsd.ModelGroupDefinition.

xsd.ModelGroupDefinition.qname

Returns a xml.QName object representing the name and target_namespace pair of the component.

xsd.ModelGroupDefinition.target_namespace

Returns the target namespace of the xsd.ModelGroupDefinition.

Special methods

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