Interface IModelLoader.IModelInfoHolder<M extends IModel>

Type Parameters:
M - the specific type of the model
All Known Implementing Classes:
ModelInfoHolder
Enclosing interface:
IModelLoader<M extends IModel>

public static interface IModelLoader.IModelInfoHolder<M extends IModel>
An instance providing limited access to model information.
Author:
Holger Eichelberger
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a model information as result of an operation.
    void
    error(String message)
    Notifies about an error.
    boolean
    isKnown(URI uri, IModelLoader<M> loader)
    Checks whether model information for a given URI is known.
  • Method Details

    • addResult

      void addResult(ModelInfo<M> toAdd)
      Adds a model information as result of an operation.
      Parameters:
      toAdd - the information object to add
    • isKnown

      boolean isKnown(URI uri, IModelLoader<M> loader)
      Checks whether model information for a given URI is known.
      Parameters:
      uri - the URI to check
      loader - update the loader in case of unspecified loader
      Returns:
      true if it is known, false else
    • error

      void error(String message)
      Notifies about an error.
      Parameters:
      message - the error message