Interface RegistrationProvider
- All Known Implementing Classes:
ISModelRegistrationProvider
public interface RegistrationProvider
An interface for providers that supply package information for model registration.
Implementations of this interface are used to identify the packages that contain the model's type definitions, which need to be registered with the system. Any implementation must have a no-argument constructor.
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant representing an unknown model version. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the model.default StringReturns the version of the model, resolved dynamically (e.g. from the JAR manifest).Returns a collection of packages that contain the model's type definitions.
-
Field Details
-
UNKNOWN_VERSION
Constant representing an unknown model version.- See Also:
-
-
Method Details
-
getModelName
String getModelName()Returns the name of the model.- Returns:
- The model name.
-
getModelVersion
Returns the version of the model, resolved dynamically (e.g. from the JAR manifest). If resolution fails or version is not available, returnsUNKNOWN_VERSION.- Returns:
- The model version, or "unknown".
-
getPackagesToRegister
Collection<Package> getPackagesToRegister()Returns a collection of packages that contain the model's type definitions.- Returns:
- A collection of packages to be registered.
-