public class TypeNameLocalization extends Object
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:
displayName
of resource bundle
<fully-qualified custom type name>-argparse4j
(with the
dots replaced by slashes).type.<simple class name of the type>
of resource
bundle net/sourceforge/argparse4j/internal/ArgumentParserImpl
.
The application code should not use this class directly.
Modifier and Type | Method and Description |
---|---|
static String |
localizeTypeNameIfPossible(ArgumentParser parser,
Class<?> type) |
public static String localizeTypeNameIfPossible(ArgumentParser parser, Class<?> type)
Copyright © 2012–2017. All rights reserved.