Examples of StringGenerator


Examples of net.java.quickcheck.generator.support.StringGenerator

   * generated by the given character generator.
   *
   */
  public static ExtendibleGenerator<Character, String> strings(
      Generator<Character> characterGenerator) {
    return new StringGenerator(characterGenerator);
  }
View Full Code Here

Examples of net.java.quickcheck.generator.support.StringGenerator

  /**
   * Create a new string generator which creates strings of characters from
   * a-z and A-Z.
   */
  public static ExtendibleGenerator<Character, String> letterStrings() {
    return new StringGenerator(characters('a', 'z')).add(characters('A', 'Z'));
  }
View Full Code Here

Examples of net.java.quickcheck.generator.support.StringGenerator

  /**
   * Create a new string generator which creates strings with sizes ranging
   * from loLengh to hiLength of characters from a-z and A-Z.
   */
  public static ExtendibleGenerator<Character, String> letterStrings(int min, int max) {
    StringGenerator generator = new StringGenerator(new IntegerGenerator(min, max), characters('a', 'z'));
    return generator.add(characters('A', 'Z'));
  }
View Full Code Here

Examples of net.java.quickcheck.generator.support.StringGenerator

   * Create a new string generator which creates strings of characters
   * generated by {@link PrimitiveGenerators#basicLatinCharacters()} and
   * {@link PrimitiveGenerators#latin1SupplementCharacters()}.
   */
  public static ExtendibleGenerator<Character, String> printableStrings() {
    return new StringGenerator(basicLatinCharacters()).add(latin1SupplementCharacters());
  }
View Full Code Here

Examples of org.apache.cocoon.pipeline.component.sax.StringGenerator

    /**
     * A pipeline that performs a simple transformation: generator -&gt; transformer -&gt; serializer
     */
    public void testPipelineWithTransformer() throws Exception {
        Pipeline pipeline = new NonCachingPipeline();
        pipeline.addComponent(new StringGenerator("<x></x>"));
        pipeline.addComponent(new XSLTTransformer(this.getClass().getResource("/test.xslt")));
        pipeline.addComponent(new XMLSerializer());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        pipeline.setup(baos);
View Full Code Here

Examples of org.apache.cocoon.pipeline.component.sax.StringGenerator

     */
    public static void transform(String xmlString, Map<String, Object> xsltParameters, Properties outputProperties,
            OutputStream outputStream, URL... xsltUrls) throws Exception {
        Pipeline pipeline = new NonCachingPipeline();

        pipeline.addComponent(new StringGenerator(xmlString));
        for (URL xsltUrl : xsltUrls) {
            pipeline.addComponent(new XSLTTransformer(xsltUrl, xsltParameters));
        }
        pipeline.addComponent(new XMLSerializer(outputProperties));

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.