java.lang.Object
de.codecamp.messages.shared.conf.ProjectConf
- All Implemented Interfaces:
MessageModule
ProjectConf contains the aspects of the project configuration shared by the annotation
processor and other tools like the Eclipse companion plug-in. It represents a snapshot of the
current configuration, so it's not intended to be long lived or stored for later use.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetMode()voidresolveBundleMappings(Function<String, MessageModule> importedModuleProvider) toTargetBundleName(String messageKey) Returns the most specific bundle name for the given message key after applying the bundle root mappings.toTargetBundleName(String messageKey, boolean onlyLocalMappings)
-
Field Details
-
ERROR_CONF_FILE_ERROR
- See Also:
-
ERROR_MISSING_OPTION
- See Also:
-
ERROR_ILLEGAL_LOCALE
- See Also:
-
ERROR_ILLEGAL_BUNDLE_MAPPING
- See Also:
-
ERROR_ILLEGAL_TYPE_ABBREVIATION
- See Also:
-
ERROR_ILLEGAL_IMPORT
- See Also:
-
ERROR_MISSING_IMPORT
- See Also:
-
ERROR_UNKNOWN_VALUE
- See Also:
-
PROJECT_CONF_FILE_NAME
- See Also:
-
CONF_PREFIX
- See Also:
-
CONF_PROJECT_DIR
- See Also:
-
CONF_MODULE_NAME
- See Also:
-
CONF_BUNDLE_DIR
- See Also:
-
BUNDLE_DIR_DEFAULT
- See Also:
-
CONF_BUNDLE_ENCODING
- See Also:
-
CONF_BUNDLES
- See Also:
-
CONF_IGNORED_BUNDLES
- See Also:
-
CONF_TARGET_LOCALES
- See Also:
-
CONF_IMPORTS
- See Also:
-
CONF_TYPE_ABBREVIATIONS
- See Also:
-
CONF_MODE
- See Also:
-
CONF_MISSING_MESSAGE_POLICY
- See Also:
-
CONF_MESSAGE_ARG_POLICY
- See Also:
-
CONF_UNDECLARED_KEY_POLICY
- See Also:
-
CONF_UNDECLARED_KEY_COMMENT
- See Also:
-
CONF_BUNDLE_MISMATCH_POLICY
- See Also:
-
CONF_MESSAGE_FORMAT
- See Also:
-
CONF_GENERATE_CONSTANTS
- See Also:
-
CONF_GENERATE_PROXIES
- See Also:
-
ALL_CONF_NAMES
-
-
Constructor Details
-
Method Details
-
getProjectDir
-
getModuleName
- Specified by:
getModuleNamein interfaceMessageModule
-
getBundleDir
-
getBundleEncoding
-
getIgnoredBundles
-
getBundleMappings
- Specified by:
getBundleMappingsin interfaceMessageModule
-
getTargetLocales
- Specified by:
getTargetLocalesin interfaceMessageModule
-
getImportedModules
- Specified by:
getImportedModulesin interfaceMessageModule
-
getImports
-
getTypeAbbreviations
-
getMode
-
getMissingMessagePolicy
-
getMessageArgPolicy
-
getUndeclaredKeyPolicy
-
getUndeclaredKeyComment
-
getBundleMismatchPolicy
-
getMessageFormat
- Specified by:
getMessageFormatin interfaceMessageModule
-
getGenerateConstants
public boolean getGenerateConstants() -
getGenerateProxies
public boolean getGenerateProxies() -
resolveBundleMappings
public void resolveBundleMappings(Function<String, MessageModule> importedModuleProvider) throws ProjectConfException- Throws:
ProjectConfException
-
toTargetBundleName
Returns the most specific bundle name for the given message key after applying the bundle root mappings.- Parameters:
messageKey- a message key- Returns:
- the target bundle name for the given message key or null if no mapping is available
-
toTargetBundleName
-
createDefaultMessageBundleManager
-