public void parsePattern(){
  if (isValidPattern(patternStr)) {
    patternStr=patternStr.replaceAll("\\.","\\\\.");
    patternStr=patternStr.replaceAll("\\*","\\.\\*");
    String[] patterns=patternStr.split(",");
    StringBuffer str=new StringBuffer();
    for (int i=0; i < patterns.length; i++) {
      str.append("(");
      str.append(patterns[i]);
      str.append(")*");
    }
    patternStr=str.toString();
    this.pattern=Pattern.compile(patternStr,Pattern.CASE_INSENSITIVE);
  }
}

public void parsePattern ( ) { if ( isValidPattern ( patternStr ) ) { patternStr = patternStr . replaceAll ( "\\." , "\\\\." ) ; patternStr = patternStr . replaceAll ( "\\*" , "\\.\\*" ) ; String [ ] patterns = patternStr . split ( "," ) ; StringBuffer str = new StringBuffer ( ) ; for ( int i = 0 ; i < patterns . length ; i ++ ) { str . append ( "(" ) ; str . append ( patterns [ i ] ) ; str . append ( ")*" ) ; } patternStr = str . toString ( ) ; this . pattern = Pattern . compile ( patternStr , Pattern . CASE_INSENSITIVE ) ; } }
sets the pattern field from the pattern string . called by tc when instantiating on node .
