UpperLowerCase

UpperLowerCase

Reads a string generated by another generator or a sub-generator and formats it. Modes: Only the first letter uppercase, all letters uppercase or all letters lowercase. Either specify a sub-generator or run another generator using a Sequential before this one to provide a value.

Attributes
Name Description Required Min Max Allowed Values
name (Class)Name of this element. Used to identify plugin Class. Full name is required. Example: com.en.myPluginPackage.myPuginClass no 0 1
id Identification String of this element. May be used to uniquely identify a field within the children of an Element. no 0 1
Nodes
Name Description Required Min Max Allowed Values
mode yes 1 1
  • first_uppercase
  • uppercase
  • lowercase
gen Value Generator for this field no 0 1

Examples

  1. Uppercase First Letter

    Takes the output of another string producing generator and capitalizes the first letter.

    Schema config for Uppercase First Letter
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!--
    /*******************************************************************************
    * Copyright (c) 2013, bankmark and/or its affiliates. All rights reserved.
    * bankmark UG PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    ******************************************************************************/
    --><schema xmlns:doc="http://bankmark.de/pdgf/doc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="demo" xsi:noNamespaceSchemaLocation="structure/pdgfSchema.xsd">
      <!-- All data is derived from this starting seed.
           If this seed is the same, the generated data will the same on each
           computer/node/platform.
           Change this seed to generate a different data set.-->
      <seed>1234567890L</seed>
    
      <rng name="PdgfDefaultRandom"/>
    
      <!--Default Scale factor for all tables -->
      <property name="SF" type="double">1</property>
    
      <table name="UpperLowerCase">
        <!-- if tables should scale with -SF command line argument.
             Specify your scaling formula here: -->
        <size>10 * ${SF}</size>
    
        <!--Uppercase First Letter-->
          <!--Takes the output of another string producing generator and capitalizes the first letter.-->
          <field name="first_letter_upper" size="" type="VARCHAR">
            <gen_UpperLowerCase>
              <mode>first_uppercase</mode>
              <gen_RandomString>
                <min>4</min>
                <max>10</max>
              </gen_RandomString>
            </gen_UpperLowerCase>
          </field>
          </table>
    </schema>
    
    Output for Uppercase First Letter
    Bhns
    Stg0ql0n5p
    Eiey
    Gnmwivxi
    Aqkns7
    L2nth
    St4zuk
    Cobfescz
    Hv3xkfgxy
    Mzoshvvkkc
  2. Uppercase All Letters

    Takes the output of another string producing generator and capitalizes all letters.

    Schema config for Uppercase All Letters
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!--
    /*******************************************************************************
    * Copyright (c) 2013, bankmark and/or its affiliates. All rights reserved.
    * bankmark UG PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    ******************************************************************************/
    --><schema xmlns:doc="http://bankmark.de/pdgf/doc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="demo" xsi:noNamespaceSchemaLocation="structure/pdgfSchema.xsd">
      <!-- All data is derived from this starting seed.
           If this seed is the same, the generated data will the same on each
           computer/node/platform.
           Change this seed to generate a different data set.-->
      <seed>1234567890L</seed>
    
      <rng name="PdgfDefaultRandom"/>
    
      <!--Default Scale factor for all tables -->
      <property name="SF" type="double">1</property>
    
      <table name="UpperLowerCase">
        <!-- if tables should scale with -SF command line argument.
             Specify your scaling formula here: -->
        <size>10 * ${SF}</size>
    
        <!--Uppercase All Letters-->
          <!--Takes the output of another string producing generator and capitalizes all letters.-->
          <field name="all_upper" size="" type="VARCHAR">
            <gen_UpperLowerCase>
              <mode>uppercase</mode>
              <gen_RandomString>
                <min>4</min>
                <max>10</max>
              </gen_RandomString>
            </gen_UpperLowerCase>
          </field>
          </table>
    </schema>
    
    Output for Uppercase All Letters
    DSA9H
    UWI4TQNG
    ZBWSSBIS
    PAQ86ESUJ
    V6NC7I9M
    AF1D
    SBNHA
    BIXC7VN8
    YSYED2L
    JA1P8C
  3. Lowercase All Letters

    Takes the output of another string producing generator and lowercases all letters.

    Schema config for Lowercase All Letters
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!--
    /*******************************************************************************
    * Copyright (c) 2013, bankmark and/or its affiliates. All rights reserved.
    * bankmark UG PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    ******************************************************************************/
    --><schema xmlns:doc="http://bankmark.de/pdgf/doc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="demo" xsi:noNamespaceSchemaLocation="structure/pdgfSchema.xsd">
      <!-- All data is derived from this starting seed.
           If this seed is the same, the generated data will the same on each
           computer/node/platform.
           Change this seed to generate a different data set.-->
      <seed>1234567890L</seed>
    
      <rng name="PdgfDefaultRandom"/>
    
      <!--Default Scale factor for all tables -->
      <property name="SF" type="double">1</property>
    
      <table name="UpperLowerCase">
        <!-- if tables should scale with -SF command line argument.
             Specify your scaling formula here: -->
        <size>10 * ${SF}</size>
    
        <!--Lowercase All Letters-->
          <!--Takes the output of another string producing generator and lowercases all letters.-->
          <field name="all_lower" size="" type="VARCHAR">
            <gen_UpperLowerCase>
              <mode>lowercase</mode>
              <gen_RandomString>
                <min>4</min>
                <max>10</max>
              </gen_RandomString>
            </gen_UpperLowerCase>
          </field>
          </table>
    </schema>
    
    Output for Lowercase All Letters
    cs8x
    cavn8te0
    odtm4k
    l10xaq7r
    7rtby0amc
    jl1kr
    df9fnqdoo
    wgkm
    npns1
    4mc12
2.7-83fb0 | 2020-04-22