Interface EntityInfo
- All Known Implementing Classes:
EntityInfoImpl
public interface EntityInfo
Entity model information.
- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptionGets the entity.getFile()Gets the model file.Gets the model defaults used when the entity was created from the model source.Gets the source text of the model for this entity.getURL()Gets the URL of the model source.booleanReturns whether the model file has changed.booleanisFile()Returns true if the URL points to a file.
-
Method Details
-
getEntity
-
getURL
-
isFile
boolean isFile()Returns true if the URL points to a file.- Returns:
- true if URL is a file, else some other URL
-
getFile
Gets the model file.- Returns:
- the file
- Throws:
ModelException- if the URL does not represent a file in the filesystem
-
getModelSource
-
getModelDefaults
ModelDefaults getModelDefaults()Gets the model defaults used when the entity was created from the model source.- Returns:
- the defaults, null if none
-
hasChanged
boolean hasChanged()Returns whether the model file has changed.- Returns:
- true if changed, always false if URL is not a file
-