DocumentTypeMapper.kt 278 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
package org.memobase.helpers

import org.memobase.model.FacetContainer

class DocumentTypeMapper(path: String) {
    private val labels = LoadFile.readLabelFile(path)

    fun getValue(code: String): FacetContainer {
        return labels[code] ?: FacetContainer.DEFAULT
    }
}