Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.services.clientserver.search
Class SystemSearchFileNameMatcher

java.lang.Object
  extended by 
org.eclipse.rse.services.clientserver.search.SystemSearchFileNameMatcher
All Implemented Interfaces:
IMatcher, ISystemSearchMatcher

public class SystemSearchFileNameMatcher
extends Object
implements ISystemSearchMatcher

A file name matcher for search.


Constructor Summary
SystemSearchFileNameMatcher ( String fileNamesString, boolean isCaseSensitive, boolean isRegex)
          Constructor to create a file name matcher.
 
Method Summary
 boolean isFileNamesStringAsterisk ()
          Returns whether the file names string is "*".
 boolean isFileNamesStringEmpty ()
          Returns whether the file names string is empty.
 boolean matches ( String input)
          Returns whether there is a match for the given input.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemSearchFileNameMatcher

public SystemSearchFileNameMatcher(
String fileNamesString,
                                   boolean isCaseSensitive,
                                   boolean isRegex)
Constructor to create a file name matcher.

Parameters:
fileNamesString - the file names string.
isCaseSensitive - true if the matching should be done in a case sensitive manner, false otherwise.
isRegex - true if the file names string is a regular expression, false otherwise.
Throws:
NullPointerException - if the file names string is null.
Method Detail

isFileNamesStringEmpty

public boolean isFileNamesStringEmpty()
Returns whether the file names string is empty.

Returns:
true if the file names string is empty, false otherwise.

isFileNamesStringAsterisk

public boolean isFileNamesStringAsterisk()
Returns whether the file names string is "*".

Returns:
true if the file names string is "*", false otherwise.

matches

public boolean matches(
String input)
Returns whether there is a match for the given input. Returns true if the file names string is an empty string.

Specified by:
matches in interface IMatcher
Parameters:
input - Input string to be matched
Returns:
true if the input string matches this matcher's criteria
See Also:
org.eclipse.rse.services.clientserver.ISystemSearchMatcher#matches(java.lang.String)

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire