PJS003 Globally Unique Identifiers - v1

001 | @implementer-agreement
002 | @PJS
003 | @version1
004 | Feature: PJS003 - Globally Unique Identifiers
005 |   The rule verifies that the GUID of each element adheres to the Global Unique Identifier format
006 |   and ensures compliance with constraints that are not yet validated by other methods.
007 |   Specifically, the characters must be within the official encoding character set
008 |   "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_$,"
009 |   , the resulting string must be exactly 22 characters in length, and the first character must be either 0, 1, 2, or 3.
010 |
011 |   https://ifc43-docs.standards.buildingsmart.org/IFC/RELEASE/IFC4x3/HTML/lexical/IfcGloballyUniqueId.htm
012 |
013 |
014 |   Scenario Outline: Valid globally unique identifiers
015 |     Given An .IfcRoot.
016 |     Given Its attribute .GlobalId.
017 |
018 |     Then <Constraint>
019 |
020 |     Examples:
021 |     | Constraint |
022 |     | The string length must be exactly '22' characters |
023 |     | The characters must be within the official encoding character set |
024 |     | Its value ^starts^ with '0' or '1' or '2' or '3' |

Version history

Version

Tag

Date

Commit

Rule link

v1

v0.6.7

2024-09-24

e227cc9a

view

v1

v0.6.7

2024-09-25

af0dc670

view