| 410 | super().__init__(value, system, uri, cardinality, instructions) |
| 411 | |
| 412 | def filter( |
| 413 | self, ifc_file: ifcopenshell.file, elements: Optional[list[ifcopenshell.entity_instance]] |
| 414 | ) -> list[ifcopenshell.entity_instance]: |
| 415 | if isinstance(elements, list): |
| 416 | return super().filter(ifc_file, elements) |
| 417 | return ifc_file.by_type("IfcObjectDefinition") |
| 418 | |
| 419 | def __call__(self, inst: ifcopenshell.entity_instance, logger: Optional[Logger] = None) -> ClassificationResult: |
| 420 | leaf_references = ifcopenshell.util.classification.get_references(inst) |