1 package org.jacorb.notification.filter; 2 3 23 24 import org.jacorb.notification.EventTypeWrapper; 25 import org.omg.CosNotifyFilter.ConstraintInfo; 26 27 31 32 public class ConstraintEntry 33 { 34 private final FilterConstraint filterConstraint_; 35 36 private final ConstraintInfo constraintInfo_; 37 38 40 public ConstraintEntry( FilterConstraint filterConstraint, 41 ConstraintInfo constraintInfo ) 42 { 43 filterConstraint_ = filterConstraint; 44 constraintInfo_ = constraintInfo; 45 } 46 47 49 public EventTypeWrapper getEventTypeWrapper( int index ) 50 { 51 return new EventTypeWrapper( constraintInfo_.constraint_expression.event_types[ index ] ); 52 } 53 54 55 public int getEventTypeCount() 56 { 57 return constraintInfo_.constraint_expression.event_types.length; 58 } 59 60 61 public int getConstraintId() 62 { 63 return constraintInfo_.constraint_id; 64 } 65 66 67 public ConstraintInfo getConstraintInfo() 68 { 69 return constraintInfo_; 70 } 71 72 public String getConstraintExpression() 73 { 74 return constraintInfo_.constraint_expression.constraint_expr; 75 } 76 77 public FilterConstraint getFilterConstraint() 78 { 79 return filterConstraint_; 80 } 81 } 82 | Popular Tags |