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
seed Random number generator seed of this Element. Overrides default seeding behavior. no 0 1
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
gen Value Generator for this field no 0 1
  • pdgf.generator.MarkovChainText
  • pdgf.generator.AsReferenceChoice
  • pdgf.generator.WeightedListItem
  • pdgf.generator.DetailFromDate
  • pdgf.generator.BuildList
  • pdgf.generator.InsertIntoString
  • pdgf.generator.UUID
  • pdgf.generator.Probability
  • pdgf.generator.RandomString
  • pdgf.generator.Sequential
  • pdgf.generator.ConvertNumberToString
  • pdgf.generator.WeightedSubListItem
  • pdgf.generator.RandomListItems
  • pdgf.generator.Email
  • pdgf.generator.ActionDeleteIsAlsoUpdate
  • pdgf.generator.DoubleNumber
  • pdgf.generator.Permutation
  • pdgf.generator.Switch
  • pdgf.generator.ReferenceValue
  • pdgf.generator.ForFormula
  • pdgf.generator.PrePostfix
  • pdgf.generator.StaticValue
  • pdgf.generator.Hash
  • pdgf.generator.Padding
  • pdgf.generator.FormatString
  • pdgf.generator.DateTime
  • pdgf.generator.Id
  • pdgf.generator.LastChoice
  • pdgf.generator.MaskString
  • pdgf.generator.Null
  • pdgf.generator.AddRandomSeconds
  • pdgf.generator.RandomStringInRange
  • pdgf.generator.Formula
  • pdgf.generator.AbstractDecimal
  • pdgf.generator.FormatFloatingPoint
  • pdgf.generator.OtherFieldValue
  • pdgf.generator.RandomSentence
  • pdgf.generator.FormatNumber
  • pdgf.generator.Template
  • pdgf.generator.BigBenchReview
  • pdgf.generator.UpperLowerCase
  • pdgf.generator.For
  • pdgf.generator.Relative
  • pdgf.generator.RandomUniqeString
  • pdgf.generator.PermutationReference
  • pdgf.generator.UpdateActionType
  • pdgf.generator.FormatNumberAsDate
  • pdgf.generator.OldReferenceGeneratorDeprecated
  • pdgf.generator.DictList
  • pdgf.generator.ExtendedFormula
  • pdgf.generator.FormatDateAsNumber
  • pdgf.generator.If
  • pdgf.generator.GlobalRowNumber
  • pdgf.generator.LongNumber
  • pdgf.generator.UnsafeDistinct

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.6_#1486_b758 | 2016-05-24