org.nuiton.math.matrix
Class SemanticMapper

java.lang.Object
  extended by org.nuiton.math.matrix.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: 369 $ Last update : $Date: 2011-05-30 18:27:57 +0200 (lun., 30 mai 2011) $ By : $Author: echatellier $
Author:
chatellier

Constructor Summary
SemanticMapper()
           
 
Method Summary
 Class getType(String typeName)
          Return class for type identified by typeName.
 String getTypeName(Object type)
          Return type name for given type.
 Object getValue(Class type, String valueId)
          Return value identified by valueId and type type.
 String getValueId(Object value)
          Get value id for value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2004-2011 CodeLutin. All Rights Reserved.