xsd.IdentityConstraintDefinition¶
xsd.IdentityConstraintDefinition components provide for uniqueness and reference constraints with respect to the contents of multiple elements and attributes.
Base class: xsd.Component
- class xsd.IdentityConstraintDefinition¶
Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedErrorexception.
Attributes¶
- xsd.IdentityConstraintDefinition.annotations¶
Returns an iterator of
xsd.Annotationcomponents.
- xsd.Component.element
Returns the xml.ElementInformationItem representing this schema component.
- xsd.IdentityConstraintDefinition.fields¶
Returns an iterator of restricted
xsd.XPathExpressionobjects. Thesexsd.XPathExpressionobjects are relative to each element selected by a selector. Each XPath expression in the fields property must identify a single node (element or attribute), whose content or value, which must be of a simple type, is used in the constraint. It is possible to specify an ordered list of fields, to cater to multi-field keys, keyrefs, and uniqueness constraints.
- 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.IdentityConstraintDefinition.identity_constraint_category¶
Returns the
xsd.IdentityConstraintCategoryof thisxsd.IdentityConstraintDefinition. This property specifies the role of thisxsd.IdentityConstraintDefinition.
- xsd.IdentityConstraintDefinition.name¶
Returns the name of the
xsd.IdentityConstraintDefinition.
- xsd.IdentityConstraintDefinition.qname¶
Returns a xml.QName object representing the name and target_namespace pair of the component.
- xsd.IdentityConstraintDefinition.referenced_key¶
Returns an
xsd.IdentityConstraintDefinitioncomponent if identity_constraint_category isxsd.IdentityConstraintCategory.KEYREF, None otherwise. If a value is returned, its identity_constraint_category isxsd.IdentityConstraintCategory.KEYorxsd.IdentityConstraintCategory.UNIQUE.
- xsd.IdentityConstraintDefinition.selector¶
Returns a restricted
xsd.XPathExpressionrelative to instances of the element being declared. This must identify a sequence of element nodes that are contained within the declared element to which the constraint applies.
- xsd.IdentityConstraintDefinition.target_namespace¶
Returns the target namespace of the
xsd.IdentityConstraintDefinition.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__