|
RULE shape_representation_requires_origin FOR (shape_representation); WHERE wr1: SIZEOF ( QUERY ( sr <* shape_representation | NOT ( ( SIZEOF ( QUERY ( it <* sr \ representation . items | ( ( ( it \ representation_item . name = 'origin' ) OR ( it \ representation_item . name = 'orientation' ) ) AND ( ( 'geometry_schema.' + 'axis2_placement_2d' IN TYPEOF ( it ) ) OR ( 'geometry_schema.' + 'axis2_placement_2d' IN TYPEOF ( it ) ) ) ) ) ) = 1 ) OR ( SIZEOF ( QUERY ( it <* sr \ representation . items | ( ( 'presentation_appearance_schema.' + 'styled_item' IN TYPEOF ( it ) ) ) ) ) >= 1 ) OR ( SIZEOF ( QUERY ( it <* sr \ representation . items | ( ( ( it \ representation_item . name = 'origin' ) OR ( it \ representation_item . name = 'orientation' ) ) AND ( ( sr \ representation . name = 'zone shape' ) OR ( sr . context_of_items \ representation_context . context_type = 'connection zone colour' ) ) ) ) ) = 0 ) ) ) ) = 0 ; END_RULE; -- shape_representation_requires_origin |
|
public class RShape_representation_requires_origin public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |