Interface ModelDirectory
- All Known Implementing Classes:
ModelDirectoryImpl
public interface ModelDirectory
A directory holding model files.
The model directory is capable of detecting changes, usually model files added by the Wurbelizer.
The model directory is capable of detecting changes, usually model files added by the Wurbelizer.
- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()Gets the directory path.getURLs()Gets the model file URLs.
Hidden files are ignored.booleanReturns whether the directory has changed since it was scanned, i.e., files were added or removed.
Changes of the file contents are detected per entity byEntityInfo.hasChanged().voidMarks this directory dirty.
-
Method Details
-
getPath
-
getURLs
Gets the model file URLs.
Hidden files are ignored.- Returns:
- the list of URLs, never null
- Throws:
ModelException- if a file cannot be converted to a URL
-
hasChanged
boolean hasChanged()Returns whether the directory has changed since it was scanned, i.e., files were added or removed.
Changes of the file contents are detected per entity byEntityInfo.hasChanged().- Returns:
- true if changed
-
markDirty
void markDirty()Marks this directory dirty.
-