org.hackystat.sensorbase.uripattern
Class AtomicPattern

java.lang.Object
  extended by org.hackystat.sensorbase.uripattern.AtomicPattern
All Implemented Interfaces:
Pattern

 class AtomicPattern
extends java.lang.Object
implements Pattern

Atomic pattern.

Author:
(Cedric) Qin ZHANG

Constructor Summary
AtomicPattern(java.lang.String pattern)
          Constructor.
 
Method Summary
 boolean matches(java.lang.String filePath)
          Tests whether the pattern matches a file path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomicPattern

AtomicPattern(java.lang.String pattern)
Constructor.

Parameters:
pattern - The pattern string.
Method Detail

matches

public boolean matches(java.lang.String filePath)
Tests whether the pattern matches a file path.

Specified by:
matches in interface Pattern
Parameters:
filePath - The file path to match.
Returns:
True if there is a match.