com.simonstl.fragment
Class RegexpSplit

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

public class RegexpSplit
extends java.lang.Object
implements RegExInt

RegexpSplit wraps the org.apache.regexp.RE for splitting. *

Version 0.01 cuts the SplitterImpl method out of RegexProcFactory.

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

Constructor Summary
RegexpSplit()
           
RegexpSplit(java.lang.String _pattern)
           
 
Method Summary
 java.util.ArrayList divide(java.lang.String elementContent)
          This class uses the Apache regexp engine to implement 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

RegexpSplit

public RegexpSplit()

RegexpSplit

public RegexpSplit(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 class uses the Apache regexp engine to implement 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