Interface EntityInfo

All Known Implementing Classes:
EntityInfoImpl

public interface EntityInfo
Entity model information.
Author:
harald
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the entity.
    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.
    Gets the URL of the model source.
    boolean
    Returns whether the model file has changed.
    boolean
    Returns true if the URL points to a file.
  • Method Details

    • getEntity

      Entity getEntity()
      Gets the entity.
      Returns:
      the entity
    • getURL

      URL getURL()
      Gets the URL of the model source.
      Returns:
      the URL
    • isFile

      boolean isFile()
      Returns true if the URL points to a file.
      Returns:
      true if URL is a file, else some other URL
    • getFile

      File getFile() throws ModelException
      Gets the model file.
      Returns:
      the file
      Throws:
      ModelException - if the URL does not represent a file in the filesystem
    • getModelSource

      String getModelSource()
      Gets the source text of the model for this entity.
      Returns:
      the source text
    • 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