com.simonstl.fragment
Class Regex4jMatch

java.lang.Object
  |
  +--com.simonstl.fragment.Regex4jMatch
All Implemented Interfaces:
RegExInt

public class Regex4jMatch
extends java.lang.Object
implements RegExInt

Regex4jMatch wraps the IBM com.ibm.regex.RegularExpression class for matching. Although the regex4j package is a superset of the Xerces regex classes, it is neither freely redistributable nor open source.

Version 0.01 is based on the similar XercesMatch.

Version:
0.01 11 July 2001
Author:
Simon St.Laurent

Constructor Summary
Regex4jMatch()
           
Regex4jMatch(java.lang.String _pattern)
           
 
Method Summary
 java.util.ArrayList divide(java.lang.String elementContent)
          This implementation uses the Apache Xerces regex engine to support the RegExInt interface.
 int getType()
          getType() allows the application to query whether this is a matching class (0), splitting class (1), or series class (2).
 void setPattern(java.lang.String _pattern)
          setPattern() is effectively the initialization routine for the regular expression, thereby allowing the same pattern to be reused without repeated initialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Regex4jMatch

public Regex4jMatch()

Regex4jMatch

public Regex4jMatch(java.lang.String _pattern)
Method Detail

setPattern

public void setPattern(java.lang.String _pattern)
Description copied from interface: RegExInt
setPattern() is effectively the initialization routine for the regular expression, thereby allowing the same pattern to be reused without repeated initialization.
Specified by:
setPattern in interface RegExInt

divide

public java.util.ArrayList divide(java.lang.String elementContent)
This implementation uses the Apache Xerces regex engine to support the RegExInt interface.
Specified by:
divide in interface RegExInt

getType

public int getType()
Description copied from interface: RegExInt
getType() allows the application to query whether this is a matching class (0), splitting class (1), or series class (2).
Specified by:
getType in interface RegExInt