Class CommonTools
- java.lang.Object
-
- de.aristaflow.adept2.model.common.tools.CommonTools
-
public class CommonTools extends Object
This class offers tool methods for several models.
-
-
Constructor Summary
Constructors Constructor Description CommonTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getTypeAsString(ProcessConstants.AdeptDataType adt, String udtName)
Gets a string representation of the designatedProcessConstants.AdeptDataType
.static String
getTypeAsString(ProcessConstants.AdeptDataType adt, String udtName, String any)
Gets a string representation of the designatedProcessConstants.AdeptDataType
.
-
-
-
Method Detail
-
getTypeAsString
public static String getTypeAsString(ProcessConstants.AdeptDataType adt, String udtName)
Gets a string representation of the designatedProcessConstants.AdeptDataType
. In case of aProcessConstants.AdeptDataType.USERDEFINED
type, the UDT name will be appended if notnull
.- Parameters:
adt
- The data type for which to get a string representation. This must not benull
.udtName
- The name of the user-defined type ornull
.- Returns:
- A string representation for the designated data type.
-
getTypeAsString
public static String getTypeAsString(ProcessConstants.AdeptDataType adt, String udtName, String any)
Gets a string representation of the designatedProcessConstants.AdeptDataType
. In case of aProcessConstants.AdeptDataType.USERDEFINED
type, the UDT name will be appended if notnull
. If the designated data type isnull
or if it isProcessConstants.AdeptDataType.USERDEFINED
and the UDT name isnull
, the designatedany
string will be used. This is especially for parameter templates of which the data type/UDT name does not matter.- Parameters:
adt
- The data type for which to get a string representation. This may benull
in caseany
is provided.udtName
- The name of the user-defined type ornull
.any
- The string representation for when the data type/UDT name does not matter. This must not benull
if eitheradt
orudtName
arenull
.- Returns:
- A string representation for the designated data type including "do not care".
-
-