org.jbehave.core.steps

Class PatternVariantBuilder

    • Constructor Summary

      Constructors 
      Constructor and Description
      PatternVariantBuilder(java.lang.String input)
      Creates a builder and calculates all variants for given input.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.Set<java.lang.String> allVariants()
      Returns a new copy set of all variants with no whitespace compression.
      java.util.Set<java.lang.String> allVariants(boolean compressWhitespace)
      Returns a new copy set of all variants.
      java.lang.String getInput() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PatternVariantBuilder

        public PatternVariantBuilder(java.lang.String input)
        Creates a builder and calculates all variants for given input. When there are no variants found in the input, it will itself be the only result.
        Parameters:
        input - to be evaluated
    • Method Detail

      • getInput

        public java.lang.String getInput()
      • allVariants

        public java.util.Set<java.lang.String> allVariants()
        Returns a new copy set of all variants with no whitespace compression.
        Returns:
        a Set of all variants without whitespace compression
        See Also:
        allVariants(boolean)
      • allVariants

        public java.util.Set<java.lang.String> allVariants(boolean compressWhitespace)

        Returns a new copy set of all variants. Any two or more consecutive white space characters will be condensed into a single space if boolean flag is set.

        Otherwise, any whitespace will be left as is.

        Parameters:
        compressWhitespace - whether or not to compress whitespace
        Returns:
        a Set of all variants

Copyright © 2003-2014. All Rights Reserved.