public boolean matchesRawNamePattern(Object item){
  String prefix=patternMatcher.getPattern();
  String text=getElementName(item);
  if (text == null)   return false;
  int textLength=text.length();
  int prefixLength=prefix.length();
  if (textLength < prefixLength) {
    return false;
  }
  for (int i=prefixLength - 1; i >= 0; i--) {
    if (Character.toLowerCase(prefix.charAt(i)) != Character.toLowerCase(text.charAt(i)))     return false;
  }
  return true;
}

public boolean matchesRawNamePattern ( Object item ) { String prefix = patternMatcher . getPattern ( ) ; String text = getElementName ( item ) ; if ( text == null ) return false ; int textLength = text . length ( ) ; int prefixLength = prefix . length ( ) ; if ( textLength < prefixLength ) { return false ; } for ( int i = prefixLength - 1 ; i >= 0 ; i -- ) { if ( Character . toLowerCase ( prefix . charAt ( i ) ) != Character . toLowerCase ( text . charAt ( i ) ) ) return false ; } return true ; }
general method for matching raw name pattern . checks whether current pattern is prefix of name provided item .
