Class CommonTools
java.lang.Object
de.aristaflow.adept2.model.common.tools.CommonTools
This class offers tool methods for several models.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTypeAsString(ProcessConstants.AdeptDataType adt, String udtName) Gets a string representation of the designatedProcessConstants.AdeptDataType.static StringgetTypeAsString(ProcessConstants.AdeptDataType adt, String udtName, String any) Gets a string representation of the designatedProcessConstants.AdeptDataType.
-
Constructor Details
-
CommonTools
public CommonTools()
-
-
Method Details
-
getTypeAsString
Gets a string representation of the designatedProcessConstants.AdeptDataType. In case of aProcessConstants.AdeptDataType.USERDEFINEDtype, 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.USERDEFINEDtype, the UDT name will be appended if notnull. If the designated data type isnullor if it isProcessConstants.AdeptDataType.USERDEFINEDand the UDT name isnull, the designatedanystring 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 benullin caseanyis 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 benullif eitheradtorudtNamearenull.- Returns:
- A string representation for the designated data type including "do not care".
-