Class TypeMapper
java.lang.Object
net.ssehub.easy.varModel.model.datatypes.TypeMapper
Maps singleton type instances to unique names and back again. Basically, all instances
of delegating types shall be mapped.
- Author:
- Holger Eichelberger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<?> Exports the meta-class of the package-local classDelegatingType.Stores the name-to-type-mappings.Stores the type-to-name-mappings. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DELEGATING_CLASS
Exports the meta-class of the package-local classDelegatingType. -
TYPE_STRING
Stores the type-to-name-mappings. -
STRING_TYPE
Stores the name-to-type-mappings.
-
-
Constructor Details
-
TypeMapper
public TypeMapper()
-
-
Method Details
-
put
Adds a name-type-mapping.- Parameters:
name- the (unique) textual name oftypetype- the mapped type
-
getName
Returns the mapping name for atype.- Parameters:
type- the type to return the mapping name for- Returns:
- the mapping name (null in case that there is no mapping)
-
getType
Returns the mapped type for aname.- Parameters:
name- the name to return the mapped type for- Returns:
- the mapped type (null in case that there is no mapping)
-