Class ModelInformation
- java.lang.Object
-
- net.ssehub.easy.integration.common.ModelInformation
-
- All Implemented Interfaces:
IModelInfo
public class ModelInformation extends java.lang.Object implements IModelInfo
Implements the model information object.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private IModelAccessaccessprivate ModelInfo<Project>info
-
Constructor Summary
Constructors Constructor Description ModelInformation(ModelInfo<Project> info, IModelAccess access)Creates a model info instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ModelInfo<Project>getInstance()Returns the implementing instance.java.net.URIgetLocation()Returns where the model was stored at.java.lang.StringgetName()Returns the name of the model.(package private) IModelAccessgetOrigin()Returns the origin of this instance.java.lang.StringgetVersion()Returns the version of the model.
-
-
-
Field Detail
-
access
private IModelAccess access
-
-
Constructor Detail
-
ModelInformation
ModelInformation(ModelInfo<Project> info, IModelAccess access)
Creates a model info instance.- Parameters:
info- the project info instance to be wrappedaccess- the instance which created this object (for consistency reasons)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:IModelInfoReturns the name of the model.- Specified by:
getNamein interfaceIModelInfo- Returns:
- the name
-
getVersion
public java.lang.String getVersion()
Description copied from interface:IModelInfoReturns the version of the model.- Specified by:
getVersionin interfaceIModelInfo- Returns:
- the version (may be null if there is none)
-
getLocation
public java.net.URI getLocation()
Description copied from interface:IModelInfoReturns where the model was stored at.- Specified by:
getLocationin interfaceIModelInfo- Returns:
- the location
-
getInstance
ModelInfo<Project> getInstance()
Returns the implementing instance.- Returns:
- the implementing instance
-
getOrigin
IModelAccess getOrigin()
Returns the origin of this instance.- Returns:
- the origin
-
-