Remote Systems
v6.4.1

com.ibm.etools.systems.core.clientserver.search
Class SystemSearchFileNameMatcher

java.lang.Object
  extended bycom.ibm.etools.systems.core.clientserver.search.SystemSearchFileNameMatcher
All Implemented Interfaces:
IMatcher, ISystemSearchMatcher

public class SystemSearchFileNameMatcher
extends Object
implements ISystemSearchMatcher

A file name matcher for search.


Field Summary
 
Fields inherited from interface com.ibm.etools.systems.core.clientserver.IMatcher
Copyright
 
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
See Also:
com.ibm.etools.systems.core.clientserver.ISystemSearchMatcher#matches(java.lang.String)

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.