java.lang.Object
de.codecamp.messages.shared.model.AbstractPersistableData
de.codecamp.messages.shared.model.MessageKeyIndex
- All Implemented Interfaces:
MessageModule
The message key index file contains the information which message keys this project / module
declares and where they are declared in the source.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.codecamp.messages.shared.model.AbstractPersistableData
AbstractPersistableData.PersistableDataException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) static MessageKeyIndexcopyOf(MessageKeyIndex index) intintintgetCodegenPackage(String sourceType) getKeys()getKeysForType(String sourceType) static StringgetPreferredFilePath(String moduleName) intgetSize()booleanhasSourceType(String sourceType) static booleanisIndexFile(String filename) static MessageKeyIndexreadFrom(InputStream inputStream) static MessageKeyIndexvoidsetBundleMappings(List<BundleMapping> bundleMappings) voidsetImportedModules(List<String> importedModules) voidsetMessageFormat(String messageFormat) voidsetModuleName(String moduleName) voidsetTargetLocales(List<Locale> targetLocales) voidupdateCodegenPackageFor(String sourceType, String codegenPackage) voidupdateMessageKeysFor(String sourceType, Set<MessageKeyWithSourceLocation> messageKeys) Methods inherited from class de.codecamp.messages.shared.model.AbstractPersistableData
readFrom, readFrom, writeTo, writeTo
-
Constructor Details
-
MessageKeyIndex
public MessageKeyIndex()
-
-
Method Details
-
getModuleName
- Specified by:
getModuleNamein interfaceMessageModule
-
setModuleName
-
getTargetLocales
- Specified by:
getTargetLocalesin interfaceMessageModule
-
setTargetLocales
-
getBundleMappings
- Specified by:
getBundleMappingsin interfaceMessageModule
-
setBundleMappings
-
getImportedModules
- Specified by:
getImportedModulesin interfaceMessageModule
-
setImportedModules
-
getMessageFormat
- Specified by:
getMessageFormatin interfaceMessageModule
-
setMessageFormat
-
containsKey
-
hasSourceType
-
getSourceTypes
-
countSourceTypes
public int countSourceTypes() -
getKeysForType
-
getKey
-
countKeys
-
getKeys
-
countKeys
public int countKeys() -
updateMessageKeysFor
-
updateCodegenPackageFor
-
getSize
public int getSize() -
getCodegenPackage
-
getPreferredFilePath
-
getPreferredFilePath
-
isIndexFile
-
readFrom
public static MessageKeyIndex readFrom(InputStream inputStream) throws AbstractPersistableData.PersistableDataException -
readFrom
public static MessageKeyIndex readFrom(Path path) throws AbstractPersistableData.PersistableDataException
-