use of com.b2international.snowowl.snomed.core.domain.IdGenerationStrategy in project snow-owl by b2ihealthcare.
the class IdRequest method getNamespaceKey.
/**
* @return a namespace key intended to be used as a key in a collection;
* <code>null</code> values are converted to {@link SnomedIdentifiers#INT_NAMESPACE}.
*/
private String getNamespaceKey(final SnomedCoreComponentCreateRequest createRequest) {
final IdGenerationStrategy idGenerationStrategy = createRequest.getIdGenerationStrategy();
final String namespace = idGenerationStrategy.getNamespace();
return namespace == null ? SnomedIdentifiers.INT_NAMESPACE : namespace;
}
Aggregations