1 21 22 package org.opensubsystems.patterns.listdata.data; 23 24 import java.io.Serializable ; 25 import java.util.List ; 26 27 39 public class SimpleRule implements Serializable 40 { 41 43 46 public static final int LOGICAL_AND = 1; 47 48 51 public static final int LOGICAL_OR = 2; 52 53 56 public static final SimpleRule ALL_DATA = new SimpleRule(LOGICAL_OR, 57 null); 58 59 61 64 private static final long serialVersionUID = -6988653599832397651L; 65 66 69 protected int m_iLogicalOperation; 70 71 74 protected List m_conditions; 75 76 78 81 public SimpleRule() 82 { 83 this(LOGICAL_AND, null); 84 } 85 86 93 public SimpleRule( 94 int iLogicalOperation, 95 List conditions 96 ) 97 { 98 m_iLogicalOperation = iLogicalOperation; 99 m_conditions = conditions; 100 } 101 102 105 public List getConditions() 106 { 107 return m_conditions; 108 } 109 110 113 public int getConditionsOperand() 114 { 115 return m_iLogicalOperation; 116 } 117 } 118 | Popular Tags |