Class ServiceNameMappings
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.utility.ServiceNameMappings
This class is used to read and write service name mappings from a file.
-
Constructor Summary
ConstructorsConstructorDescriptionServiceNameMappings
(Path file) Creates a new instance ofServiceNameMappings
with the specified file. -
Method Summary
-
Constructor Details
-
ServiceNameMappings
Creates a new instance ofServiceNameMappings
with the specified file.- Parameters:
file
- the file to read and write mappings from/to
-
-
Method Details
-
save
Saves the mappings to the file.- Throws:
IOException
- if an error occurs while writing to the file
-
getString
Gets the value of the specified key.- Parameters:
key
- the key to get the value for- Returns:
- the optional value of the key.
-
putString
Adds a new mapping to the file.- Parameters:
key
- the key to addvalue
- the value to addcomments
- the comments to add, optional
-