Package org.intermine.web.uri
Class ClassNameURIIdentifierMapper
- java.lang.Object
-
- org.intermine.web.uri.ClassNameURIIdentifierMapper
-
public final class ClassNameURIIdentifierMapper extends java.lang.Object
Class to map the class name defined in the core.xml with the identifier used to generate the InterMineLUI (e.g. Protein ->primaryAccession, Publication ->pubMedId). The map is loaded from uri_keys.properties where the identifiers for the core model classes (e.g. Protein_URI = primaryAccession) have been set and from class_keys.properties where the admninistrator can override or add new identifiers- Author:
- danielabutano
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIdentifier(java.lang.String className)
Given the className, returns the identifier (e.g.static ClassNameURIIdentifierMapper
getMapper()
Static method to create the instance of ClassNameURIIdentifierMapper class
-
-
-
Method Detail
-
getMapper
public static ClassNameURIIdentifierMapper getMapper()
Static method to create the instance of ClassNameURIIdentifierMapper class- Returns:
- the ClassNameURIIdentifierMapper instance
-
getIdentifier
public java.lang.String getIdentifier(java.lang.String className)
Given the className, returns the identifier (e.g. primaryAccession, pubMedId, primaryIdentifier) associated to it; data source providers have different keys- Parameters:
className
- the className- Returns:
- the identifier assigned to the className
-
-