Interface RegistrationProvider
-
- All Known Implementing Classes:
ISModelRegistrationProvider
public interface RegistrationProviderAn 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
Fields Modifier and Type Field Description static StringUNKNOWN_VERSIONConstant representing an unknown model version.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetModelName()Returns the name of the model.default StringgetModelVersion()Returns the version of the model, resolved dynamically (e.g.Collection<Package>getPackagesToRegister()Returns a collection of packages that contain the model's type definitions.
-
-
-
Field Detail
-
UNKNOWN_VERSION
static final String UNKNOWN_VERSION
Constant representing an unknown model version.- See Also:
- Constant Field Values
-
-
Method Detail
-
getModelName
String getModelName()
Returns the name of the model.- Returns:
- The model name.
-
getModelVersion
default String 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.
-
-