public void addText(String text) throws ConfigException, PatternSyntaxException {
  text=text.trim();
  if (!text.equals(""))   setName(text);
}

public void addText ( String text ) throws ConfigException , PatternSyntaxException { text = text . trim ( ) ; if ( ! text . equals ( "" ) ) setName ( text ) ; }
sets the pattern name .
