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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 typetype
.String
getValueId(Object value)
Get value id for value.
-
-
-
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" ReturnString
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 typetype
. ReturnvalueId
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
-
-