public class MemoryModelGetter extends Object implements ModelGetter
Constructor and Description |
---|
MemoryModelGetter() |
Modifier and Type | Method and Description |
---|---|
Model |
getModel(String URL)
Answer a Model whose content is that associated with the URL, if possible,
and otherwise answer null.
|
Model |
getModel(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 . |
public Model getModel(String URL)
ModelGetter
getModel
in interface ModelGetter
public Model getModel(String URL, ModelReader loadIfAbsent)
ModelGetter
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.getModel
in interface ModelGetter
Licenced under the Apache License, Version 2.0