xsd.Assertion

xsd.Assertion components constrain the existence and values of related elements and attributes. These constraints are expressed as xsd.XPathExpression objects.

Base class: xsd.Component

class xsd.Assertion

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

Attributes

xsd.Assertion.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.Assertion.test

Returns an xsd.XPathExpression property record.

Special methods

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