xsd.ModelGroup
¶
When the children of xml.ElementInformationItem objects are not constrained to be empty or by reference to a
xsd.SimpleTypeDefinition
, the sequence of xml.ElementInformationItem children content may be specified in
more detail with a xsd.ModelGroup
.
Base class: xsd.Component
- class xsd.ModelGroup¶
Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedError
exception.
Attributes¶
- xsd.ModelGroup.annotations¶
Returns an iterator of
xsd.Annotation
components.
- xsd.ModelGroup.compositor¶
Returns one of{
xsd.ModelGroupCompositor.ALL
,xsd.ModelGroupCompositor.CHOICE
,xsd.ModelGroupCompositor.SEQUENCE
}. This property specifies a sequential (xsd.ModelGroupCompositor.SEQUENCE
), disjunctive (xsd.ModelGroupCompositor.CHOICE
) or conjunctive (xsd.ModeLGroupCompositor.ALL) interpretation of thexsd.Particle
objects.
- 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.ModelGroup.particles¶
Returns an iterator of
xsd.Particle
schema components. The interpretation of this property depends on the value of the compositor property.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__