RULE restrict_properties_of_document_file FOR (document_file); WHERE wr1: SIZEOF ( QUERY ( df <* document_file | SIZEOF ( QUERY ( pd <* USEDIN ( df , 'AUTOMOTIVE_DESIGN.'+'PROPERTY_DEFINITION.'+ 'DEFINITION' ) | pd. name = 'document property' ) ) >1 ) ) =0; wr2: SIZEOF ( QUERY ( df <* document_file | SIZEOF ( QUERY ( rt <* df. representation_types | ( 'AUTOMOTIVE_DESIGN.'+ 'DOCUMENT_REPRESENTATION_TYPE' IN TYPEOF ( rt ) ) AND ( rt. name IN ['digital' , 'physical'] ) ) ) =0 ) ) =0; END_RULE; -- restrict_properties_of_document_file |
public class RRestrict_properties_of_document_file public int rWr2(SdaiContext _context) public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |