CompositeConstraint#

class ansys.sam.sysml2.dto.query.constraints_classes.CompositeConstraint#

Bases: Constraint

Provides a composite constraint for multiple query constraints.

Overview#

to_json

Get a JSON representation of the class.

Import detail#

from ansys.sam.sysml2.dto.query.constraints_classes import CompositeConstraint

Attribute detail#

CompositeConstraint.operator: ansys.sam.sysml2.dto.query.query_enum.JoinOperator = 'and'#
CompositeConstraint.constraint: List[Constraint] = []#

Method detail#

CompositeConstraint.to_json() dict#

Get a JSON representation of the class.