|
RULE restrict_multi_language_for_draughting_title FOR (draughting_title); WHERE wr1: SIZEOF ( QUERY ( ent <* draughting_title | SIZEOF ( QUERY ( mlaa <* USEDIN ( ent , 'automotive_design.' + 'multi_language_attribute_assignment.' + 'items' ) | ( mlaa . attribute_name <> 'contents' ) ) ) > 0 ) ) = 0 ; wr2: SIZEOF ( QUERY ( ent <* draughting_title | SIZEOF ( QUERY ( ala <* USEDIN ( ent , 'automotive_design.' + 'attribute_language_assignment.' + 'items' ) | ( ala . attribute_name <> 'contents' ) AND ( ala . attribute_name <> 'language' ) ) ) > 0 ) ) = 0 ; wr3: SIZEOF ( QUERY ( ent <* draughting_title | ( SIZEOF ( QUERY ( mlaa1 <* USEDIN ( ent , 'automotive_design.' + 'multi_language_attribute_assignment.' + 'items' ) | SIZEOF ( QUERY ( mlaa2 <* USEDIN ( ent , 'automotive_design.' + 'multi_language_attribute_assignment.' + 'items' ) | ( mlaa1 . attribute_name = mlaa2 . attribute_name ) AND ( mlaa1 . language = mlaa2 . language ) ) ) > 1 ) ) + SIZEOF ( QUERY ( ala1 <* USEDIN ( ent , 'automotive_design.' + 'attribute_language_assignment.' + 'items' ) | SIZEOF ( QUERY ( ala2 <* USEDIN ( ent , 'automotive_design.' + 'attribute_language_assignment.' + 'items' ) | ( ala1 . attribute_name = ala2 . attribute_name ) AND ( ala1 . language = ala2 . language ) ) ) > 1 ) ) ) > 0 ) ) = 0 ; END_RULE; -- restrict_multi_language_for_draughting_title |
|
public class RRestrict_multi_language_for_draughting_title public int rWr3(SdaiContext _context) public int rWr2(SdaiContext _context) public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |