|
RULE draughting_model_items_constraint FOR (draughting_model); WHERE wr1: SIZEOF ( QUERY ( dm <* draughting_model | NOT ( SIZEOF ( QUERY ( it1 <* dm \ representation . items | ( ( 'draughting_element_schema.annotation_occurrence' IN TYPEOF ( it1 ) ) AND NOT ( 'aic_draughting_annotation.' + 'draughting_annotation_occurrence' IN TYPEOF ( it1 ) ) ) ) ) = 0 ) ) ) = 0 ; wr2: SIZEOF ( QUERY ( dm <* draughting_model | NOT ( SIZEOF ( QUERY ( it1 <* dm \ representation . items | ( ( 'draughting_element_schema.draughting_callout' IN TYPEOF ( it1 ) ) AND NOT ( 'aic_draughting_elements.draughting_elements' IN TYPEOF ( it1 ) ) ) ) ) = 0 ) ) ) = 0 ; END_RULE; -- draughting_model_items_constraint |
|
public class RDraughting_model_items_constraint public int rWr2(SdaiContext _context) public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |