1 6 7 package SOFA.SOFAnet.Search; 8 9 import java.io.Serializable ; 10 11 36 public class SearchPattern implements Serializable 37 { 38 final static public int CC_TRY = 0; 39 final static public int CC_NO = 1; 40 final static public int CC_ONLY = 2; 41 42 private boolean pattern; 43 private boolean component; 44 private int completeComponent; 45 46 private String str; 47 48 49 public SearchPattern() 50 { 51 pattern = false; 52 component = false; 53 completeComponent = CC_TRY; 54 } 55 56 public boolean isPattern() 57 { 58 return pattern; 59 } 60 61 public boolean isComponent() 62 { 63 return component; 64 } 65 66 public int getCompleteComponent() 67 { 68 return completeComponent; 69 } 70 71 public String getStr() 72 { 73 return str; 74 } 75 76 public void setPattern(boolean pattern) 77 { 78 this.pattern = pattern; 79 } 80 81 public void setComponent(boolean component) 82 { 83 this.component = component; 84 } 85 86 public void setCompleteComponent(int completeComponent) 87 { 88 if (completeComponent != CC_NO && completeComponent != CC_ONLY) completeComponent = CC_TRY; 89 this.completeComponent = completeComponent; 90 } 91 92 public void setStr(String str) 93 { 94 this.str = str; 95 } 96 } 97 | Popular Tags |