| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.util.SplitString
This class splits a String based on a separator. It then sets the prefix and suffix.
| Constructor Summary | |
| SplitString(String source,
                       String separator)Creates an instance with the source String and separator. | |
| SplitString(String source,
                       String separator,
                       boolean findFirst)Creates an instance with the source String and separator. | |
| Method Summary | |
|  String | getPrefix()Returns the prefix String that was created as a result of the split. | 
|  String | getSuffix()Returns the suffix String that was created as a result of the split. | 
|  boolean | isValid()The definition of a valid split is one where either there was no split in the string, or the splitter resulted in two new strings. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public SplitString(String source,
                   String separator)
SplitString(source, separator, true)
source - The source String.separator - The separator used for splitting the source String.
public SplitString(String source,
                   String separator,
                   boolean findFirst)
source - The source String.separator - The separator used for splitting the source String.findFirst - If true splits based on first occurence of seperator, if false
        split is done on the last occurence.| Method Detail | 
public boolean isValid()
public String getPrefix()
public String getSuffix()
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||