Commit 86668495 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Rename LanguageTagFieldMapper to LanguageFieldMapper

parent 11db3293
......@@ -31,7 +31,7 @@ import org.memobase.mapping.mappers.DateFieldMapper
import org.memobase.mapping.mappers.IFieldMapper
import org.memobase.mapping.mappers.IdentifierFieldMapper
import org.memobase.mapping.mappers.LanguageMapper
import org.memobase.mapping.mappers.LanguageTagFieldMapper
import org.memobase.mapping.mappers.LanguageFieldMapper
import org.memobase.mapping.mappers.ListFieldMapper
import org.memobase.mapping.mappers.PlaceFieldMapper
import org.memobase.mapping.mappers.RuleFieldMapper
......@@ -217,7 +217,7 @@ class MappingConfig(directory: String) {
is SimpleField -> StringFieldMapper(field)
is ConstField -> ConstantFieldMapper(field)
is ListField -> ListFieldMapper(field)
is LanguageField -> LanguageTagFieldMapper(field)
is LanguageField -> LanguageFieldMapper(field)
else -> throw InvalidMappingException("This can't happen since there is no other class of this type...")
}
}
......
......@@ -21,7 +21,7 @@ package org.memobase.mapping.mappers
import org.memobase.builder.IResource
import org.memobase.mapping.fields.LanguageField
class LanguageTagFieldMapper(private val languageField: LanguageField) : IFieldMapper {
class LanguageFieldMapper(private val languageField: LanguageField) : IFieldMapper {
override fun apply(source: Map<String, String>, subject: IResource) {
for (pair in languageField.fields) {
for (field in pair.second) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment