Class ModelInfoHolder<M extends IModel>

    • Constructor Summary

      Constructors 
      Constructor Description
      ModelInfoHolder​(AvailableModels<M> availableModels)
      Creates an instance from the currently available model.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addResult​(ModelInfo<M> toAdd)
      Adds a model information as result of an operation.
      void error​(java.lang.String message)
      Notifies about an error.
      ModelInfo<M> getResult​(int index)
      Returns the the specified result.
      int getResultCount()
      Returns the resulting model information instances.
      boolean isKnown​(java.net.URI uri, IModelLoader<M> loader)
      Checks whether model information for a given URI is known.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModelInfoHolder

        ModelInfoHolder​(AvailableModels<M> availableModels)
        Creates an instance from the currently available model.
        Parameters:
        availableModels - the available models
    • Method Detail

      • getResultCount

        public int getResultCount()
        Returns the resulting model information instances.
        Returns:
        the resulting instances
      • getResult

        public ModelInfo<M> getResult​(int index)
        Returns the the specified result.
        Parameters:
        index - the index of the result
        Returns:
        the result instance
        Throws:
        java.lang.IndexOutOfBoundsException - if index<0 || index>=getResultCount()