Difference between revisions of "Extensions.StringUtil.StringConcatenate"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
 
{{DISPLAYTITLE:'''StringConcatenate '''}}[[Category:StringUtil]]
 
{{DISPLAYTITLE:'''StringConcatenate '''}}[[Category:StringUtil]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | StringConcatenate | Concatenation of strings | [[Term]] | [[Extensions.StringUtil|OTX StringUtil extension]] | [[StringUtil related terms]] | [[Core.Actions.Throw.Exception.OutOfBoundsException|OutOfBoundsException]] | - }}
+
{{ClassificationActivity | StringConcatenate | Concatenation of strings | [[Term]] | [[Extensions.StringUtil|OTX StringUtil extension]] | [[Extensions.StringUtil#Terms|StringUtil related terms]] | [[Core.DataTypes.ComplexDataType.OutOfBoundsException|OutOfBoundsException]] | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
StringTerm = StringConcatenate({StringTerm1, StringTerm2, ...});
+
StringTerm = StringUtil.StringConcatenate({StringTerm1, StringTerm2, ...});
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Description ==
 
== Description ==
The '''StringConcatenate''' term returns the concatenation of two or more string.
+
The '''StringConcatenate''' term shall yield a new string which is the concatenation of two or more strings.
  
 
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | Concatenation of two or more strings}}
 
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | Concatenation of two or more strings}}
Line 16: Line 16:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| String1 | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | The string that is concatenated}}
+
{{TableRowPropertie2| String | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [2..*] | The elements represent the strings that shall be concatenated.}}
{{TableRowPropertie2| String2 | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | The string that is concatenated}}
 
 
|}
 
|}
  
Line 24: Line 23:
 
String String1;
 
String String1;
  
String1 = StringConcatenate({"emotive", "company"});
+
/// Flow
 +
 
 +
String1 = StringUtil.StringConcatenate({"emotive", "company"});
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 08:59, 3 October 2018

Classification

Name StringConcatenate
Short Description Concatenation of strings
Class Term
Extension OTX StringUtil extension
Group StringUtil related terms
Exceptions OutOfBoundsException
Checker Rules -
Standard Compliant Yes

OTL Syntax

StringTerm = StringUtil.StringConcatenate({StringTerm1, StringTerm2, ...});

Description

The StringConcatenate term shall yield a new string which is the concatenation of two or more strings.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
String Concatenation of two or more strings

Properties

Name Data Type Class Default Cardinality Description
String String Term - [2..*] The elements represent the strings that shall be concatenated.

OTL Examples

String String1;

/// Flow

String1 = StringUtil.StringConcatenate({"emotive", "company"});

See also

ReplaceSubString
MatchToRegularExpression
SubString
LengthOfString
IndexOf
SplitString
ToUpper
ToLower
Encode
Decode