com.lonniepryor.blues.util
Class Strings.Builder

java.lang.Object
  |
  +--com.lonniepryor.blues.util.Strings.Builder
Enclosing class:
Strings

public abstract static class Strings.Builder
extends java.lang.Object

Helper class for sequentially constructing the elements of a common Strings specification.

Version:
$Revision: 1.1 $
Author:
Lonnie Pryor

Constructor Summary
Strings.Builder()
           
 
Method Summary
 Strings endingWith(Characters specification)
          Returns a Strings specification that will require the supplied character at the end of canidate strings.
 Strings endingWith(java.lang.String characters)
          Returns a Strings specification that will require the supplied text at the end of canidate strings.
 Strings endingWithAny()
          Returns a Strings specification that will accept any number of characters at the end of canidate strings.
 Strings endingWithAtLeastNumChars(int minChars)
          Returns a Strings specification that will require the at least the specified number of characters at the end of canidate strings.
 Strings.Builder followedBy(Characters specification)
          Returns a Builder whose resulting Strings specification will require the supplied character at this point in canidate strings.
 Strings.Builder followedBy(java.lang.String characters)
          Returns a Builder whose resulting Strings specification will require the supplied text at this point in canidate strings.
 Strings.Builder followedByAny()
          Returns a Builder whose resulting Strings specification will accept any number of characters at this point in canidate strings.
 Strings.Builder followedByAtLeastNumChars(int minChars)
          Returns a Builder whose resulting Strings specification will require the at least the specified number of characters at this point in canidate strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Strings.Builder

public Strings.Builder()
Method Detail

followedByAny

public Strings.Builder followedByAny()
Returns a Builder whose resulting Strings specification will accept any number of characters at this point in canidate strings.

Returns:
A Builder whose resulting Strings specification will accept any number of characters at this point in canidate strings.

followedByAtLeastNumChars

public Strings.Builder followedByAtLeastNumChars(int minChars)
Returns a Builder whose resulting Strings specification will require the at least the specified number of characters at this point in canidate strings.

Parameters:
minChars - The minimum number of charactes to require.
Returns:
A Builder whose resulting Strings specification will require the at least the specified number of characters at this point in canidate strings.

followedBy

public Strings.Builder followedBy(Characters specification)
Returns a Builder whose resulting Strings specification will require the supplied character at this point in canidate strings.

Parameters:
specification - The specification to match to.
Returns:
A Builder whose resulting Strings specification will require the supplied character at this point in canidate strings.

followedBy

public Strings.Builder followedBy(java.lang.String characters)
Returns a Builder whose resulting Strings specification will require the supplied text at this point in canidate strings.

Parameters:
characters - The text to match.
Returns:
A Builder whose resulting Strings specification will require the supplied text at this point in canidate strings.

endingWithAny

public Strings endingWithAny()
Returns a Strings specification that will accept any number of characters at the end of canidate strings.

Returns:
A Strings specification that will accept any number of characters at the end of canidate strings.

endingWithAtLeastNumChars

public Strings endingWithAtLeastNumChars(int minChars)
Returns a Strings specification that will require the at least the specified number of characters at the end of canidate strings.

Parameters:
minChars - The minimum number of charactes to require.
Returns:
A Strings specification that will require the at least the specified number of characters at the end of canidate strings.

endingWith

public Strings endingWith(Characters specification)
Returns a Strings specification that will require the supplied character at the end of canidate strings.

Parameters:
specification - The specification to match to.
Returns:
A Strings specification that will require the supplied character at the end of canidate strings.

endingWith

public Strings endingWith(java.lang.String characters)
Returns a Strings specification that will require the supplied text at the end of canidate strings.

Parameters:
characters - The text to match.
Returns:
A Strings specification that will require the supplied text at the end of canidate strings.


Copyright © 2003 Blues Framework. All Rights Reserved.