project35.soa.alerts
Class MatchingCriteria

java.lang.Object
  extended by project35.soa.alerts.MatchingCriteria

public class MatchingCriteria
extends java.lang.Object

a collection of field matching criteria. MatchingCriteria will have a combination of edit field matching criteria that compare a field value; and list field matching criteria that compare the number of list children to some number


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Field Summary
protected  java.util.ArrayList matchingCriteria
           
protected  java.lang.String recordClassContext
           
 
Constructor Summary
MatchingCriteria()
           
 
Method Summary
 void addMatchingCriterion(MatchingCriterion criterion)
           
 void clear()
           
 java.util.ArrayList getCriteria()
          returns a collection of field matching criteria
 java.lang.String getRecordClassContext()
           
 boolean matches(RecordModel recordModel)
          determines whether a given RecordModel instance matches the criteria
 void removeMatchingCriterion(int index)
           
 void removeMatchingCriterion(MatchingCriterion criterion)
           
 void setRecordClassContext(java.lang.String recordClassContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matchingCriteria

protected java.util.ArrayList matchingCriteria

recordClassContext

protected java.lang.String recordClassContext
Constructor Detail

MatchingCriteria

public MatchingCriteria()
Method Detail

getCriteria

public java.util.ArrayList getCriteria()
returns a collection of field matching criteria


matches

public boolean matches(RecordModel recordModel)
determines whether a given RecordModel instance matches the criteria

Parameters:
recordModel - a record model

getRecordClassContext

public java.lang.String getRecordClassContext()

addMatchingCriterion

public void addMatchingCriterion(MatchingCriterion criterion)

removeMatchingCriterion

public void removeMatchingCriterion(MatchingCriterion criterion)

removeMatchingCriterion

public void removeMatchingCriterion(int index)

setRecordClassContext

public void setRecordClassContext(java.lang.String recordClassContext)

clear

public void clear()