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
NotImplementedError
exception.
Attributes¶
-
xsd.AttributeUse.
annotations
¶ Returns an iterator of
xsd.Annotation
components.
-
xsd.AttributeUse.
attribute_declaration
¶ Returns the
xsd.AttributeDeclaration
itself, which will in turn determine thexsd.SimpleTypeDefinition
used for validation.
-
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.AttributeUse.
inheritable
¶ Returns True if
xml.AttributeInformationItem
objects attributed to thisxsd.AttributeUse
are potentially inherited by descendantxml.ElementInformationItem
objects, False otherwise.
-
xsd.AttributeUse.
required
¶ Returns True if this use of an
xsd.AttributeDeclaration
requires an appropriatexml.AttributeInformationItem
to be present or False if it merely allowes such anxml.AttributeInformationItem
.
-
xsd.AttributeUse.
value_constraint
¶ Returns an optional
xsd.ValueConstraint
which specifies a default or fixed value for thisxsd.AttributeUse
.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__