/// <summary>
        /// Tests the express where-clause specified in param 'clause'
        /// </summary>
        /// <param name="clause">The express clause to test</param>
        /// <returns>true if the clause is satisfied.</returns>
        public bool ValidateClause(IfcStructuralPlanarActionClause clause)
        {
            var retVal = false;

            try
            {
                switch (clause)
                {
                case IfcStructuralPlanarActionClause.WR61:
                    retVal = Functions.SIZEOF(Functions.NewArray("IFC2X3.IFCSTRUCTURALLOADPLANARFORCE", "IFC2X3.IFCSTRUCTURALLOADTEMPERATURE") * Functions.TYPEOF(this /* as IfcStructuralActivity*/.AppliedLoad)) == 1;
                    break;
                }
            } catch (Exception ex) {
                var log = Validation.ValidationLogging.CreateLogger <Xbim.Ifc2x3.StructuralAnalysisDomain.IfcStructuralPlanarAction>();
                log?.LogError(string.Format("Exception thrown evaluating where-clause 'IfcStructuralPlanarAction.{0}' for #{1}.", clause, EntityLabel), ex);
            }
            return(retVal);
        }
        /// <summary>
        /// Tests the express where-clause specified in param 'clause'
        /// </summary>
        /// <param name="clause">The express clause to test</param>
        /// <returns>true if the clause is satisfied.</returns>
        public bool ValidateClause(IfcStructuralPlanarActionClause clause)
        {
            var retVal = false;

            try
            {
                switch (clause)
                {
                case IfcStructuralPlanarActionClause.SuitableLoadType:
                    retVal = Functions.SIZEOF(Functions.NewTypesArray("IFC4.IFCSTRUCTURALLOADPLANARFORCE", "IFC4.IFCSTRUCTURALLOADTEMPERATURE") * Functions.TYPEOF(this /* as IfcStructuralActivity*/.AppliedLoad)) == 1;
                    break;

                case IfcStructuralPlanarActionClause.ConstPredefinedType:
                    retVal = this /* as IfcStructuralSurfaceAction*/.PredefinedType == IfcStructuralSurfaceActivityTypeEnum.CONST;
                    break;
                }
            } catch (Exception ex) {
                var log = Validation.ValidationLogging.CreateLogger <Xbim.Ifc4.StructuralAnalysisDomain.IfcStructuralPlanarAction>();
                log?.LogError(string.Format("Exception thrown evaluating where-clause 'IfcStructuralPlanarAction.{0}' for #{1}.", clause, EntityLabel), ex);
            }
            return(retVal);
        }