Class ModelEntityImpl

java.lang.Object
org.tentackle.model.impl.ModelEntityImpl
All Implemented Interfaces:
ModelEntity

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

    • 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 Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getEntity

      public Entity getEntity()
      Description copied from interface: ModelEntity
      Gets the entity.
      Specified by:
      getEntity in interface ModelEntity
      Returns:
      the entity
    • 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