Class ModelEntityImpl

  • All Implemented Interfaces:
    ModelEntity

    public class ModelEntityImpl
    extends Object
    implements ModelEntity
    Entity as a component of a model.
    Author:
    harald
    • Constructor Detail

      • ModelEntityImpl

        public ModelEntityImpl​(Entity entity,
                               String filePath)
                        throws ModelException
        Creates a model entity.
        Parameters:
        entity - the entity
        filePath - the modelfile's path
        Throws:
        ModelException - if file does not exist or is not a regular file
    • Method Detail

      • getFilePath

        public String getFilePath()
        Description copied from interface: ModelEntity
        Gets the path of the modelfile.
        Specified by:
        getFilePath in interface ModelEntity
        Returns:
        the canonical file path
      • hasChanged

        public boolean hasChanged()
        Description copied from interface: ModelEntity
        Returns whether the modelfile has changed.
        Specified by:
        hasChanged in interface ModelEntity
        Returns:
        true if changed