uk.org.ogsadai.activity.files.regexp
Class OroAwkPattern

java.lang.Object
  |
  +--uk.org.ogsadai.activity.files.regexp.OroAwkPattern

public class OroAwkPattern
extends java.lang.Object

Represents an AWK-like regular expression of the type available in Jakarta ORO. Implements a wrapper around org.apache.oro.text.awk.AwkPattern.

See http://jakarta.apache.org/oro/api/org/apache/oro/text/awk/AwkCompiler.html for a detailed specification of the syntax of permitted regular expressions.

Author:
The OGSA-DAI Project Team

Constructor Summary
OroAwkPattern(java.lang.String regexp)
          Compile a new AWK-style regular expression object from the given string.
 
Method Summary
 OroMatcher matcher()
          Create and return a new matcher object intended to find matches of this regular expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OroAwkPattern

public OroAwkPattern(java.lang.String regexp)
              throws org.apache.oro.text.regex.MalformedPatternException
Compile a new AWK-style regular expression object from the given string.

Parameters:
regexp - the string containing the regular expression
Throws:
org.apache.oro.text.regex.MalformedPatternException - if the parameter is not a valid AWK regular expression
Method Detail

matcher

public OroMatcher matcher()
                   throws RegexpException
Create and return a new matcher object intended to find matches of this regular expression.

Returns:
the matcher object
Throws:
RegexpException - if AWK-style patterns are not supported by the OroMatcher class