Class ModelInformation

  • All Implemented Interfaces:
    IModelInfo

    public class ModelInformation
    extends java.lang.Object
    implements IModelInfo
    Implements the model information object.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • ModelInformation

        ModelInformation​(ModelInfo<Project> info,
                         IModelAccess access)
        Creates a model info instance.
        Parameters:
        info - the project info instance to be wrapped
        access - the instance which created this object (for consistency reasons)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: IModelInfo
        Returns the name of the model.
        Specified by:
        getName in interface IModelInfo
        Returns:
        the name
      • getVersion

        public java.lang.String getVersion()
        Description copied from interface: IModelInfo
        Returns the version of the model.
        Specified by:
        getVersion in interface IModelInfo
        Returns:
        the version (may be null if there is none)
      • getLocation

        public java.net.URI getLocation()
        Description copied from interface: IModelInfo
        Returns where the model was stored at.
        Specified by:
        getLocation in interface IModelInfo
        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