Package org.nuiton.eugene.models
Interface Model
-
- All Superinterfaces:
WithTagValuesOrStereotypes
- All Known Subinterfaces:
ObjectModel
,StateModel
- All Known Implementing Classes:
ObjectModelImpl
,StateModelImpl
public interface Model extends WithTagValuesOrStereotypes
Model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <O> O
getExtension(String reference, Class<O> extensionClass)
Get the extension associated to the reference (unique)String
getModelType()
String
getName()
Returns the name of this model.String
getVersion()
Returns the version of this model.-
Methods inherited from interface org.nuiton.eugene.models.extension.tagvalue.WithTagValuesOrStereotypes
addStereotype, addTagValue, getStereotypes, getTagValue, getTagValues, hasStereotype, hasTagValue, removeStereotype, removeTagValue
-
-
-
-
Field Detail
-
ROLE_NAME
static final String ROLE_NAME
Plexus role name
-
-
Method Detail
-
getName
String getName()
Returns the name of this model.- Returns:
- the name of this model.
-
getVersion
String getVersion()
Returns the version of this model.- Returns:
- the version of this model.
-
getModelType
String getModelType()
- Returns:
- the type of model.
- Since:
- 2.6.3
-
getExtension
<O> O getExtension(String reference, Class<O> extensionClass) throws ClassCastException, IllegalArgumentException
Get the extension associated to the reference (unique)- Type Parameters:
O
- object type returned- Parameters:
reference
- unique corresponding to the extension to getextensionClass
- class of the extension- Returns:
- the object value for the extension
- Throws:
ClassCastException
- when extensionClass is not validIllegalArgumentException
- for non existing extension with reference
-
-