class TypeCache extends Object
Types are accessed by the get
methods. They are lazy-loaded from the DB.
This class is internally used by the EmbeddedService
. The plugin developer accesses topic types via the
DeepaMehtaService.getTopicType(java.lang.String)
core service call.
Modifier and Type | Class and Description |
---|---|
private class |
TypeCache.EndlessRecursionDetection |
Modifier and Type | Field and Description |
---|---|
private Map<String,AssociationType> |
assocTypes |
private EmbeddedService |
dms |
private TypeCache.EndlessRecursionDetection |
endlessRecursionDetection |
private Logger |
logger |
private Map<String,TopicType> |
topicTypes |
Constructor and Description |
---|
TypeCache(EmbeddedService dms) |
Modifier and Type | Method and Description |
---|---|
(package private) AssociationType |
getAssociationType(String assocTypeUri) |
(package private) TopicType |
getTopicType(String topicTypeUri) |
private AssociationType |
loadAssociationType(String assocTypeUri) |
private TopicType |
loadTopicType(String topicTypeUri) |
(package private) void |
putAssociationType(AssociationType assocType) |
(package private) void |
putTopicType(TopicType topicType) |
(package private) void |
removeAssociationType(String assocTypeUri) |
(package private) void |
removeTopicType(String topicTypeUri) |
private Map<String,TopicType> topicTypes
private Map<String,AssociationType> assocTypes
private EmbeddedService dms
private TypeCache.EndlessRecursionDetection endlessRecursionDetection
TypeCache(EmbeddedService dms)
TopicType getTopicType(String topicTypeUri)
AssociationType getAssociationType(String assocTypeUri)
void putTopicType(TopicType topicType)
void putAssociationType(AssociationType assocType)
void removeTopicType(String topicTypeUri)
void removeAssociationType(String assocTypeUri)
private TopicType loadTopicType(String topicTypeUri)
private AssociationType loadAssociationType(String assocTypeUri)
Copyright © 2015. All Rights Reserved.