Class SemanticMapper


  • public class SemanticMapper
    extends Object
    Mapper used during import/export to map CSV file semantics to real semantics value depending on execution context.
    Version:
    $Revision$ Last update : $Date$ By : $Author$
    Author:
    chatellier
    • Constructor Detail

      • SemanticMapper

        public SemanticMapper()
    • Method Detail

      • getType

        public Class getType​(String typeName)
        Return class for type identified by typeName. For example : "Population" can return "fr.ifremer.entities.Population.class" Return String by default.
        Parameters:
        typeName - type to get class.
        Returns:
        type for typeId
      • getValue

        public Object getValue​(Class type,
                               String valueId)
        Return value identified by valueId and type type. Return valueId by default;
        Parameters:
        type -
        valueId -
        Returns:
        value identified by {valueId}
      • getTypeName

        public String getTypeName​(Object type)
        Return type name for given type.
        Parameters:
        type - type to get name
        Returns:
        type name
      • getValueId

        public String getValueId​(Object value)
        Get value id for value.
        Parameters:
        value - value to get id
        Returns:
        value id