Class CommonTools


  • public class CommonTools
    extends Object
    This class offers tool methods for several models.
    • Constructor Detail

      • CommonTools

        public CommonTools()
    • Method Detail

      • getTypeAsString

        public static String getTypeAsString​(ProcessConstants.AdeptDataType adt,
                                             String udtName,
                                             String any)
        Gets a string representation of the designated ProcessConstants.AdeptDataType. In case of a ProcessConstants.AdeptDataType.USERDEFINED type, the UDT name will be appended if not null. If the designated data type is null or if it is ProcessConstants.AdeptDataType.USERDEFINED and the UDT name is null, the designated any 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 be null in case any is provided.
        udtName - The name of the user-defined type or null.
        any - The string representation for when the data type/UDT name does not matter. This must not be null if either adt or udtName are null.
        Returns:
        A string representation for the designated data type including "do not care".