public boolean contains ( ConditionTerm term ) { // iterate through the factors looking for a match boolean match = false ; Enumeration terms = getConditionTerms ( ) ; while ( ! match && terms . hasMoreElements ( ) ) { ConditionTerm t = ( ConditionTerm ) terms . nextElement ( ) ; match = term . matches ( t ) ; } return match ; }
Does this Condition contain the given ConditionTerm?