Module net.sourceforge.argparse4j
Class TypeNameLocalization
java.lang.Object
net.sourceforge.argparse4j.helper.TypeNameLocalization
Localization of names for argument types. Localized names for commonly used
types in the JDK (e.g. Integer and Boolean) are provided, but
for custom types, the developer of the type must provide the localization.
This class tries to load the display name by using the following sources. The
first display name that is found is used:
- Key
displayNameof resource bundle<fully-qualified custom type name>-argparse4j(with the dots replaced by slashes). - Key
type.<simple class name of the type>of resource bundlenet/sourceforge/argparse4j/internal/ArgumentParserImpl. - The simple class name of the type.
The application code should not use this class directly.
- Since:
- 0.8.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringlocalizeTypeName(ArgumentParser parser, Class<?> type) static StringlocalizeTypeNameIfPossible(ArgumentParser parser, Class<?> type)
-
Constructor Details
-
TypeNameLocalization
private TypeNameLocalization()
-
-
Method Details
-
localizeTypeNameIfPossible
-
localizeTypeName
-