Remote Systems
v6.4.1

com.ibm.etools.systems.dstore.core.util
Class Pattern

java.lang.Object
  extended bycom.ibm.etools.systems.dstore.core.util.Pattern

public class Pattern
extends Object

This class is used to define a wildcard string pattern. Strings can be compared against a pattern to determine whether they match or not.


Field Summary
static String Copyright
           
 
Constructor Summary
Pattern(String pattern, ArrayList matchSchema)
          Constructor
 
Method Summary
 String getSubMatch(String attribute)
          Returns a submatch
 ArrayList getSubMatches()
          Returns a list of submatches
 boolean matches(String compareStr)
          Checks whther a compare string matches the pattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

Pattern

public Pattern(String pattern,
               ArrayList matchSchema)
Constructor

Parameters:
pattern - a wildcard string
matchSchema -
Method Detail

getSubMatches

public ArrayList getSubMatches()
Returns a list of submatches

Returns:
a list of submatches

getSubMatch

public String getSubMatch(String attribute)
Returns a submatch

Parameters:
attribute - an attribute to match
Returns:
a submatch

matches

public boolean matches(String compareStr)
Checks whther a compare string matches the pattern

Parameters:
compareStr - to string to compare
Returns:
true if there is a match

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.