PowerDesigner provides default model checks to verify the validity of elements.
Check |
Description and Correction |
---|---|
Element name and code uniqueness |
Element names and codes must be unique in the model. Manual correction: Modify the duplicate name/code Automatic correction: Appends a number to the duplicate name/code |
Undefined type |
An element without a reference should have a defined data type. Manual correction: In the element property sheet, define a data type with the Type list or the Browse tool Automatic correction: None |
Undefined reference |
An element without a defined data type must have a reference. Manual correction: In the element property sheet, define a reference with the Reference list or the Browse tool Automatic correction: None |
Existence of attribute |
An element without a reference, a data type or a substitution group should have at least one attribute. Manual correction: Define an attribute for the element Automatic correction: None |
Existence of particle |
An element with an embedded complex type must contain child elements, groups, group particles and/or Any. Manual correction: Add items to complex element or delete complex element Automatic correction: None |
Invalid cardinality |
[only available for model targeted with XDR] You should define a minimum (0 or 1) and a maximum cardinality (1 or unbounded) for a group particle occurrence. Manual correction: Double-click the group particle symbol and type a value for Minimum (0 or 1) and Maximum (1 or unbounded) properties Automatic correction: None |