Class DataSenseUtils
java.lang.Object
com.mulesoft.connectors.a2a.internal.datasense.DataSenseUtils
Utility class for DataSense operations. Provides helper methods for loading and working with metadata types from JSON schemas.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.mule.metadata.api.model.MetadataTypeofJsonSchema(String path, String typeId) Loads a metadata type from a JSON schema resource file.
-
Method Details
-
ofJsonSchema
Loads a metadata type from a JSON schema resource file.- Parameters:
path- The resource path to the JSON schema filetypeId- The type identifier to load from the schema- Returns:
- The loaded
MetadataType - Throws:
NullPointerException- If the resource at the specified path is not foundIllegalArgumentException- If the metadata type could not be loaded for the given typeId
-