Package com.nomagic.magicdraw.resources
Class PropertyResource
- java.lang.Object
-
- com.nomagic.magicdraw.resources.PropertyResource
-
@OpenApiAll public class PropertyResource extends java.lang.Object
This class is used to retrieve the resources from the property resource bundle files.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BUNDLE_NAME
private static com.nomagic.magicdraw.resources.PrimaryResource
platformPropertyResource
private static com.nomagic.magicdraw.resources.PrimaryResource
primaryResource
-
Constructor Summary
Constructors Constructor Description PropertyResource()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getString(java.lang.String key)
Get localized resource string according the given key.static java.lang.String
getString(java.lang.String key, java.lang.Object... values)
Get localized resource string according the given key.
-
-
-
Field Detail
-
primaryResource
private static final com.nomagic.magicdraw.resources.PrimaryResource primaryResource
-
platformPropertyResource
private static final com.nomagic.magicdraw.resources.PrimaryResource platformPropertyResource
-
BUNDLE_NAME
public static final java.lang.String BUNDLE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getString
public static java.lang.String getString(java.lang.String key)
Get localized resource string according the given key.- Parameters:
key
- key.- Returns:
- resource string.
-
getString
public static java.lang.String getString(java.lang.String key, @CheckForNull java.lang.Object... values)
Get localized resource string according the given key.- Parameters:
key
- key.values
- message arguments.- Returns:
- resource string.
-
-