Package org.apache.jena.rdf.model.impl
Class MemoryModelGetter
- java.lang.Object
-
- org.apache.jena.rdf.model.impl.MemoryModelGetter
-
- All Implemented Interfaces:
ModelGetter
public class MemoryModelGetter extends java.lang.Object implements ModelGetter
-
-
Constructor Summary
Constructors Constructor Description MemoryModelGetter()
-
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 forURL
, If none is to hand, and it's possible to create one, create it and load it usingloadIfAbsent
.
-
-
-
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 interfaceModelGetter
-
getModel
public Model getModel(java.lang.String URL, ModelReader loadIfAbsent)
Description copied from interface:ModelGetter
Answer a model appropriate forURL
, If none is to hand, and it's possible to create one, create it and load it usingloadIfAbsent
. Otherwise throw CannotCreateException. This method never returns null.- Specified by:
getModel
in interfaceModelGetter
-
-