Package org.nuiton.math.matrix
Class SemanticMapper
java.lang.Object
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$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
Constructor Summary
Constructors Constructor Description SemanticMapper() -
Method Summary
Modifier and Type Method Description ClassgetType(String typeName)Return class for type identified by typeName.StringgetTypeName(Object type)Return type name for given type.ObjectgetValue(Class type, String valueId)Return value identified by valueId and typetype.StringgetValueId(Object value)Get value id for value.
-
Constructor Details
-
SemanticMapper
public SemanticMapper()
-
-
Method Details
-
getType
Return class for type identified by typeName. For example : "Population" can return "fr.ifremer.entities.Population.class" ReturnStringby default.- Parameters:
typeName- type to get class.- Returns:
- type for typeId
-
getValue
Return value identified by valueId and typetype. ReturnvalueIdby default;- Parameters:
type-valueId-- Returns:
- value identified by {valueId}
-
getTypeName
Return type name for given type.- Parameters:
type- type to get name- Returns:
- type name
-
getValueId
Get value id for value.- Parameters:
value- value to get id- Returns:
- value id
-