public final class RegistryObjectPaths
extends java.lang.Object
RegistryObject
conceptPaths and
key. It serves as intermediate cache level, by enabling findByPath operations
to look up the key based RegistryObject
cache of the JAXR Layer.Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getChildConceptKeys(java.lang.String parentConceptKey)
Gets the child concept keys for the given parent concept key.
|
java.lang.String |
getClassificationSchemeKey(java.lang.String classificationSchemeName)
Gets the classification scheme key given the scheme name.
|
java.lang.String |
getConceptKey(java.lang.String path)
Retrieve a
Concept key by given path. |
static RegistryObjectPaths |
getInstance(Configuration conf)
Retrieves and instance of a
RegistryObjectPaths . |
void |
putChildConceptKeys(java.lang.String parentConceptKey,
java.util.List<java.lang.String> childConceptKeys)
Puts the given child concepts under the given parent concept.
|
void |
putClassificationSchemeName(java.lang.String classificationSchemeName,
java.lang.String classificationSchemeKey)
Puts the scheme name for the given key.
|
void |
putConceptPath(java.lang.String path,
java.lang.String registryObjectKey)
Add path to key mapping to the map.
|
public static RegistryObjectPaths getInstance(Configuration conf)
RegistryObjectPaths
.conf
- The Configuration
instanceRegistryObjectPaths
instancepublic java.lang.String getConceptKey(java.lang.String path)
Concept
key by given path.path
- The path for the conceptString
the key corresponding to the given path or
null
if not found.public void putConceptPath(java.lang.String path, java.lang.String registryObjectKey)
path
- The path to be addedregistryObjectKey
- The registry object key to which the path should be mappedpublic java.util.List<java.lang.String> getChildConceptKeys(java.lang.String parentConceptKey)
parentConceptKey
- The parent concept keyList
of child concept keyspublic void putChildConceptKeys(java.lang.String parentConceptKey, java.util.List<java.lang.String> childConceptKeys)
parentConceptKey
- The parent concept key under which children are supposed to be addedchildConceptKeys
- The List
of child concept keys to addpublic java.lang.String getClassificationSchemeKey(java.lang.String classificationSchemeName)
classificationSchemeName
- The classification scheme nameString
giving the classification scheme keypublic void putClassificationSchemeName(java.lang.String classificationSchemeName, java.lang.String classificationSchemeKey)
classificationSchemeName
- The Classification scheme name to putclassificationSchemeKey
- The classification scheme key