com.simonstl.fragment
Class XercesMatch

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

public class XercesMatch
extends java.lang.Object
implements RegExInt

XercesMatch wraps the Apache Xerces org.apache.xerces.utils.regex.RegularExpression class for matching.

Version 0.01 cuts the MatcherImpl method out of RegexProcFactory.

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

Constructor Summary
XercesMatch()
           
XercesMatch(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

XercesMatch

public XercesMatch()

XercesMatch

public XercesMatch(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