xsd.AttributeUse¶
An xsd.AttributeUse is a utility xsd.Component which controls the occurrence and defaulting behavior of xsd.AttributeDeclaration objects.
It plays the same role for xsd.AttributeDeclaration objects in xsd.ComplexTypeDefinition objects that xsd.Particle objects play for xsd.ElementDeclaration objects.
Base class: xsd.Component
-
class
xsd.AttributeUse¶ Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedErrorexception.
Attributes¶
-
xsd.AttributeUse.annotations¶ Returns an iterator of
xsd.Annotationcomponents.
-
xsd.AttributeUse.attribute_declaration¶ Returns the
xsd.AttributeDeclarationitself, which will in turn determine thexsd.SimpleTypeDefinitionused for validation.
-
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.AttributeUse.inheritable¶ Returns True if
xml.AttributeInformationItemobjects attributed to thisxsd.AttributeUseare potentially inherited by descendantxml.ElementInformationItemobjects, False otherwise.
-
xsd.AttributeUse.required¶ Returns True if this use of an
xsd.AttributeDeclarationrequires an appropriatexml.AttributeInformationItemto be present or False if it merely allowes such anxml.AttributeInformationItem.
-
xsd.AttributeUse.value_constraint¶ Returns an optional
xsd.ValueConstraintwhich specifies a default or fixed value for thisxsd.AttributeUse.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__