mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-15 18:14:08 +00:00
Regen express rule code: lowercase str comparison in express rule generated code
This commit is contained in:
@@ -4404,7 +4404,7 @@ class IfcBoxAlignment_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (self in ['top-left', 'top-middle', 'top-right', 'middle-left', 'center', 'middle-right', 'bottom-left', 'bottom-middle', 'bottom-right']) is not False
|
||||
assert (getattr(self, 'lower', INDETERMINATE)() in ['top-left', 'top-middle', 'top-right', 'middle-left', 'center', 'middle-right', 'bottom-left', 'bottom-middle', 'bottom-right']) is not False
|
||||
|
||||
class IfcCardinalPointReference_GreaterThanZero:
|
||||
SCOPE = 'type'
|
||||
@@ -4485,7 +4485,7 @@ class IfcFontStyle_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (self in ['normal', 'italic', 'oblique']) is not False
|
||||
assert (getattr(self, 'lower', INDETERMINATE)() in ['normal', 'italic', 'oblique']) is not False
|
||||
|
||||
class IfcFontVariant_WR1:
|
||||
SCOPE = 'type'
|
||||
@@ -4494,7 +4494,7 @@ class IfcFontVariant_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (self in ['normal', 'small-caps']) is not False
|
||||
assert (getattr(self, 'lower', INDETERMINATE)() in ['normal', 'small-caps']) is not False
|
||||
|
||||
class IfcFontWeight_WR1:
|
||||
SCOPE = 'type'
|
||||
@@ -4503,7 +4503,7 @@ class IfcFontWeight_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (self in ['normal', 'small-caps', '100', '200', '300', '400', '500', '600', '700', '800', '900']) is not False
|
||||
assert (getattr(self, 'lower', INDETERMINATE)() in ['normal', 'small-caps', '100', '200', '300', '400', '500', '600', '700', '800', '900']) is not False
|
||||
|
||||
class IfcHeatingValueMeasure_WR1:
|
||||
SCOPE = 'type'
|
||||
@@ -4602,7 +4602,7 @@ class IfcTextAlignment_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (self in ['left', 'right', 'center', 'justify']) is not False
|
||||
assert (getattr(self, 'lower', INDETERMINATE)() in ['left', 'right', 'center', 'justify']) is not False
|
||||
|
||||
class IfcTextDecoration_WR1:
|
||||
SCOPE = 'type'
|
||||
@@ -4611,7 +4611,7 @@ class IfcTextDecoration_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (self in ['none', 'underline', 'overline', 'line-through', 'blink']) is not False
|
||||
assert (getattr(self, 'lower', INDETERMINATE)() in ['none', 'underline', 'overline', 'line-through', 'blink']) is not False
|
||||
|
||||
class IfcTextTransformation_WR1:
|
||||
SCOPE = 'type'
|
||||
@@ -4620,7 +4620,7 @@ class IfcTextTransformation_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (self in ['capitalize', 'uppercase', 'lowercase', 'none']) is not False
|
||||
assert (getattr(self, 'lower', INDETERMINATE)() in ['capitalize', 'uppercase', 'lowercase', 'none']) is not False
|
||||
|
||||
class IfcActorRole_WR1:
|
||||
SCOPE = 'entity'
|
||||
@@ -5269,7 +5269,7 @@ class IfcBlobTexture_SupportedRasterFormat:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (getattr(self, 'RasterFormat', INDETERMINATE) in ['bmp', 'jpg', 'gif', 'png']) is not False
|
||||
assert (getattr(getattr(self, 'RasterFormat', INDETERMINATE), 'lower', INDETERMINATE)() in ['bmp', 'jpg', 'gif', 'png']) is not False
|
||||
|
||||
class IfcBlobTexture_RasterCodeByteStream:
|
||||
SCOPE = 'entity'
|
||||
@@ -6671,7 +6671,7 @@ class IfcDraughtingPreDefinedColour_PreDefinedColourNames:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (getattr(self, 'Name', INDETERMINATE) in ['black', 'red', 'green', 'blue', 'yellow', 'magenta', 'cyan', 'white', 'bylayer']) is not False
|
||||
assert (getattr(getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in ['black', 'red', 'green', 'blue', 'yellow', 'magenta', 'cyan', 'white', 'bylayer']) is not False
|
||||
|
||||
class IfcDraughtingPreDefinedCurveFont_PreDefinedCurveFontNames:
|
||||
SCOPE = 'entity'
|
||||
@@ -6680,7 +6680,7 @@ class IfcDraughtingPreDefinedCurveFont_PreDefinedCurveFontNames:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (getattr(self, 'Name', INDETERMINATE) in ['continuous', 'chain', 'chaindoubledash', 'dashed', 'dotted', 'bylayer']) is not False
|
||||
assert (getattr(getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in ['continuous', 'chain', 'chaindoubledash', 'dashed', 'dotted', 'bylayer']) is not False
|
||||
|
||||
class IfcDuctFitting_CorrectPredefinedType:
|
||||
SCOPE = 'entity'
|
||||
|
||||
Reference in New Issue
Block a user