package com.kryptnostic.rhizome.mappers;

import com.kryptnostic.rhizome.mapstores.MappingException;

public interface KeyMapper<K> {
    public static final String ID_ATTRIBUTE = "id";

    /**
     * @param key
     * @return Object or String that can be serialized from key
     * @throws MappingException
     */
    String fromKey( K key ) throws MappingException;

    K toKey( String value ) throws MappingException;
}

@@ -178,16 +178,72 @@
  = %22id%22;
+%0A    public static final String DEFAULT_SEPARATOR = %22:%22;
 %0A%0A    /*

add default separator to KeyMapper interface