Package com._1c.g5.v8.dt.mcore.impl
Class DefaultTypeNameMapping
- java.lang.Object
-
- com._1c.g5.v8.dt.mcore.impl.DefaultTypeNameMapping
-
- All Implemented Interfaces:
ITypeNameMapping
public class DefaultTypeNameMapping extends Object implements ITypeNameMapping
Default implementation ofITypeNameMapping
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.mcore.ITypeNameMapping
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description DefaultTypeNameMapping()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMappingFor(String englishTypeName, String russianTypeName)
Adds new mapping between EnglishTypeItem
name and RussianString
getRussianTypeName(String englishTypeName)
Gets Russian name ofTypeItem
by its English name.
-
-
-
Method Detail
-
getRussianTypeName
public String getRussianTypeName(String englishTypeName)
Description copied from interface:ITypeNameMapping
Gets Russian name ofTypeItem
by its English name. If there is no corresponding Russian name English will be returned- Specified by:
getRussianTypeName
in interfaceITypeNameMapping
- Parameters:
englishTypeName
- English name ofTypeItem
, cannot benull
- Returns:
- Russian name of
TypeItem
by its English name, nevernull
If there is no corresponding Russian name English will be returned
-
addMappingFor
public void addMappingFor(String englishTypeName, String russianTypeName)
Description copied from interface:ITypeNameMapping
Adds new mapping between EnglishTypeItem
name and Russian- Specified by:
addMappingFor
in interfaceITypeNameMapping
- Parameters:
englishTypeName
- EnglishTypeItem
name, cannot benull
russianTypeName
- RussianTypeItem
name, cannot benull
-
-