Class MemoryModelGetter

  • All Implemented Interfaces:
    ModelGetter

    public class MemoryModelGetter
    extends java.lang.Object
    implements ModelGetter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Model getModel​(java.lang.String URL)
      Answer a Model whose content is that associated with the URL, if possible, and otherwise answer null.
      Model getModel​(java.lang.String URL, ModelReader loadIfAbsent)
      Answer a model appropriate for URL, If none is to hand, and it's possible to create one, create it and load it using loadIfAbsent.
      • Methods inherited from class java.lang.Object

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

      • MemoryModelGetter

        public MemoryModelGetter()
    • Method Detail

      • getModel

        public Model getModel​(java.lang.String URL)
        Description copied from interface: ModelGetter
        Answer a Model whose content is that associated with the URL, if possible, and otherwise answer null.
        Specified by:
        getModel in interface ModelGetter
      • getModel

        public Model getModel​(java.lang.String URL,
                              ModelReader loadIfAbsent)
        Description copied from interface: ModelGetter
        Answer a model appropriate for URL, If none is to hand, and it's possible to create one, create it and load it using loadIfAbsent. Otherwise throw CannotCreateException. This method never returns null.
        Specified by:
        getModel in interface ModelGetter