PlaceholderTranslator¶
-
MacroModule
¶ genre Fields
author Wolf Spindler
package FMEstable/ReleaseMeVis
definition PlaceholderTranslator.def see also Comment
,StringUtils
keywords find
,search
,insert
,replace
,substitute
,paste
,patch
,placeholders
,texts
,documents
,substrings
,variables
,composer
,cloze
,aliases
Purpose¶
PlaceholderTranslator
is a tool macro to replace placeholders in a string. The placeholders can be of different types:
- Self-defined aliases
- Field specifiers of fields to any other modules in the network
- A set of predefined constants for system, hardware, date, or time settings.
If you want to make use of PlaceholderTranslator
inside of a macro please have a look at parentLevelsUp
to make sure that the module can find referenced fields.
Parameter Fields¶
Field Index¶
Aliases : String |
Apply : Trigger |
Auto Apply : Bool |
Constants : String |
Input : String |
Output : String |
parentLevelsUp : Integer |
Status : String |
Visible Fields¶
Auto Apply¶
Apply¶
-
name:
apply
, type:
Trigger
¶ Only sensitive if
Auto Apply
is off; it updatesOutput
to the current settings.
Constants¶
-
name:
constants
, type:
String
, persistent:
no
¶ A set of predefined constants which allow the insertion of current system, hardware, date, or time settings.
Aliases¶
-
name:
aliases
, type:
String
¶ May be empty. If not empty then each line must have any of the following contents:
$(AliasVariableName):AnyStringWithoutNewLine
$(AliasVariableName) can be used as placeholder inside
Input
which then will be replaced by AnyStringWithoutNewLine. Any field specifiers such as $(ModuleName.fieldName) or predefined constants in AnyStringWithoutNewLine will be replaced correctly. Aliases, however, are left as they are, they will not be replaced recursively.Empty lines are allowed as no operation.
Lines starting with # are considered as comments.