Class MaskingOntModelCache
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.modelaccess.ontmodels.MaskingOntModelCache
-
- All Implemented Interfaces:
OntModelCache
public class MaskingOntModelCache extends Object implements OntModelCache
The named models in the masking cache will be used in preference to a model of the same name in the base cache. If a named model doesn't exist in the masking cache, a warning is written to the log and the name will be ignored. New models are created in the base cache only.
-
-
Constructor Summary
Constructors Constructor Description MaskingOntModelCache(OntModelCache baseCache, OntModelCache maskingCache, Collection<String> maskingNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedSet<String>getModelNames()The list of names in the baseCache may have changed.org.apache.jena.ontology.OntModelgetOntModel(String name)Get the model with this name (URI).StringtoString()
-
-
-
Constructor Detail
-
MaskingOntModelCache
public MaskingOntModelCache(OntModelCache baseCache, OntModelCache maskingCache, Collection<String> maskingNames)
-
-
Method Detail
-
getOntModel
public org.apache.jena.ontology.OntModel getOntModel(String name)
Description copied from interface:OntModelCacheGet the model with this name (URI). If such a model does not exist, it will be created.- Specified by:
getOntModelin interfaceOntModelCache
-
getModelNames
public SortedSet<String> getModelNames()
The list of names in the baseCache may have changed.- Specified by:
getModelNamesin interfaceOntModelCache
-
-