InsertIntoString

InsertIntoString

Inserts the String provided in 'value'into a other String supplied by a sub-generator.

Attributes
Name Description Required Min Max Allowed Values
random Content type: Boolean
If 'true', choose a random insert point into string between ['offset', subGeneratorString.length].
Default: true
no 0 1
  • true
  • false
  • 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
respectWordBoundaries Content type: Integer
If true, insert will not happen within a word of a text. Instead: search for the next whitespace ' ' and insert after that.
Default: false
no 0 1
  • true
  • false
  • 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
strict Content type: Boolean
If 'true' (default) raises an error if offset has a value > subGeneratorString.length. If 'false', 'offset' is silently capped to subGeneratorString.length.
Default: true
no 0 1
  • true
  • false
  • 0
  • 1
Nodes
Name Description Required Min Max Allowed Values
offset Content type: Integer
Insert position offset. value will not be inserted before this index. If random is false, offset is the position of insert.
Default: 0
no 0 1
value Content type: String
String value to be inserted.
yes 1 1
sameChoiceAs Content type: Empty
Requires a <field> and a <generatorByID> attribute (in same table) to pick the row number from. If specified this InsertIntoString does not choose a random row, but it uses the same row as the referenced generator.
Default: <not set>
no 0 1
gen Value Generator for this field yes 1 1
Sub-Parameters
Parent Name Description Required Min Max Allowed Values
offset gen Value Generator for this field no 0 1
value gen Value Generator for this field no 0 1
2.7-83fb0 | 2020-04-22