public enum PathPlaceholder extends Enum<PathPlaceholder>
enum representing the export_patterns parameter in the
add-file and update-file API methods.| Enum Constant and Description |
|---|
ANDROID_CODE
Android Locale identifier used to name
"values-" folders |
FILE_EXTENSION
Original file extension
|
FILENAME
File name without extension
|
LANGUAGE
Language name (e.g.
|
LOCALE_HYPHEN
Locale with hyphen (like
uk-UA) |
LOCALE_UNDERSCORE
Locale with underscore (i.e.
|
MACOS_CODE
macOS Locale identifier used to name
".lproj" folders |
MACOS_LOCALE
macOS Locale used to name translated resources (i.e.
|
ORIGINAL_FILENAME
Original file name
|
ORIGINAL_PATH
Use parent folders' names in your project to build the file path in the
resulting archive
|
THREE_LETTER
ISO 639-2/T language code (i.e. |
TWO_LETTER
ISO 639-1 language code (i.e. |
| Modifier and Type | Method and Description |
|---|---|
String |
getIdentifier() |
String |
getParsePattern() |
String |
getPattern() |
static PathPlaceholder |
typeOf(String value)
Attempts to parse the specified
String value into a
PathPlaceholder. |
static PathPlaceholder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PathPlaceholder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PathPlaceholder LANGUAGE
Ukrainian)public static final PathPlaceholder TWO_LETTER
ISO 639-1 language code (i.e. uk)public static final PathPlaceholder THREE_LETTER
ISO 639-2/T language code (i.e. ukr)public static final PathPlaceholder LOCALE_HYPHEN
uk-UA)public static final PathPlaceholder LOCALE_UNDERSCORE
uk_UA)public static final PathPlaceholder ANDROID_CODE
"values-" folderspublic static final PathPlaceholder MACOS_CODE
".lproj" folderspublic static final PathPlaceholder MACOS_LOCALE
uk,
zh_Hans)public static final PathPlaceholder ORIGINAL_FILENAME
public static final PathPlaceholder FILENAME
public static final PathPlaceholder FILE_EXTENSION
public static final PathPlaceholder ORIGINAL_PATH
public static PathPlaceholder[] values()
for (PathPlaceholder c : PathPlaceholder.values()) System.out.println(c);
public static PathPlaceholder valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull public String getIdentifier()
@Nonnull public String getPattern()
@Nonnull public String getParsePattern()
@Nullable public static PathPlaceholder typeOf(@Nullable String value)
String value into a
PathPlaceholder.value - the String to parse.PathPlaceholder or null if no
match was found.Copyright © 2018. All rights reserved.