getFundamentalBaseType function
PIComposer APIPIComposer API

getFundamentalBaseType#

FundamentalType getFundamentalBaseType(FundamentalType fun)

Returns the base element type of an aggregate FundamentalType.

For collection types (arrays, lists, multi-dimensional collections), this function returns the underlying element type. For non-collection types, it returns the type itself.

This is particularly useful when handling instance attribute collections where you need to determine the fundamental data type regardless of collection dimensionality.

Example:

getFundamentalBaseType(FundamentalType.STRINGS2); // Returns FundamentalType.STRING
getFundamentalBaseType(FundamentalType.INTEGER);  // Returns FundamentalType.INTEGER

Returns FundamentalType.UNKNOWN if the base type cannot be determined.