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.
Author:
harald
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the directory path.
    Gets the model file URLs.
    Hidden files are ignored.
    boolean
    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 by EntityInfo.hasChanged().
    void
    Marks this directory dirty.
  • Method Details

    • getPath

      String getPath()
      Gets the directory path.
      Returns:
      the canonical path
    • getURLs

      List<URL> getURLs() throws ModelException
      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 by EntityInfo.hasChanged().
      Returns:
      true if changed
    • markDirty

      void markDirty()
      Marks this directory dirty.