| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.tools.patternmetaengine.FindSection
Class for finding a section of text in a string based on a start and end string
| Constructor Summary | |
| FindSection(String source,
                       String startStr,
                       String endStr)Creates a new instance of FindSection | |
| Method Summary | |
|  boolean | found()Was the section found in source | 
|  int | getEndPos()Get end position of section. | 
|  String | getFullSection()Get the found section, null if not found | 
|  String | getSection()Get the found section, null if not found | 
|  String | getSectionHead()This returns the text that preceeds the found section. | 
|  String | getSectionTail()This returns the text that follows the found section. | 
|  int | getStartPos()Get start position of section. | 
| static void | main(String[] args)Test rig | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public FindSection(String source,
                   String startStr,
                   String endStr)
source - Text to be searchedstartStr - Start phrase to look forendStr - End phrase to look for| Method Detail | 
public boolean found()
public int getStartPos()
public int getEndPos()
public String getSection()
public String getFullSection()
public String getSectionHead()
public String getSectionTail()
public static void main(String[] args)
args - the command line arguments| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||