Class ModelEntityImpl

  • All Implemented Interfaces:
    ModelEntity

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

      Constructors 
      Constructor Description
      ModelEntityImpl​(Entity entity, java.lang.String filePath)
      Creates a model entity.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Entity getEntity()
      Gets the entity.
      java.lang.String getFilePath()
      Gets the path of the modelfile.
      boolean hasChanged()
      Returns whether the modelfile has changed.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ModelEntityImpl

        public ModelEntityImpl​(Entity entity,
                               java.lang.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

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getFilePath

        public java.lang.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