public class ModelEntityImpl extends Object implements ModelEntity
| Constructor and Description |
|---|
ModelEntityImpl(Entity entity,
String fileName)
Creates a model entity.
|
| Modifier and Type | Method and Description |
|---|---|
Entity |
getEntity()
Gets the entity.
|
File |
getFile()
Gets the model file.
|
String |
getFileName()
Gets the filename.
|
boolean |
hasChanged()
Returns whether the modelfile has changed.
|
String |
toString() |
public ModelEntityImpl(Entity entity, String fileName) throws ModelException
entity - the entityfileName - the modelfile's filenameModelException - if file does not exist or is not a regular filepublic Entity getEntity()
getEntity in interface ModelEntitypublic String getFileName()
getFileName in interface ModelEntitypublic File getFile()
public boolean hasChanged()
hasChanged in interface ModelEntityTentackle - a domain driven enterprise framework