java.lang.Object
org.tentackle.model.impl.ModelEntityImpl
- All Implemented Interfaces:
ModelEntity
Entity as a component of a model.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the entity.Gets the path of the modelfile.booleanReturns whether the modelfile has changed.toString()
-
Constructor Details
-
ModelEntityImpl
Creates a model entity.- Parameters:
entity- the entityfilePath- the modelfile's path- Throws:
ModelException- if file does not exist or is not a regular file
-
-
Method Details
-
toString
-
getEntity
Description copied from interface:ModelEntityGets the entity.- Specified by:
getEntityin interfaceModelEntity- Returns:
- the entity
-
getFilePath
Description copied from interface:ModelEntityGets the path of the modelfile.- Specified by:
getFilePathin interfaceModelEntity- Returns:
- the canonical file path
-
hasChanged
public boolean hasChanged()Description copied from interface:ModelEntityReturns whether the modelfile has changed.- Specified by:
hasChangedin interfaceModelEntity- Returns:
- true if changed
-