java.lang.Object
de.codecamp.messages.shared.bundle.BundleFile<F>
- Type Parameters:
F- the file reference
- All Implemented Interfaces:
Comparable<BundleFile<F>>
Represents one file (i.e. one locale) of a message bundle.
-
Constructor Summary
ConstructorsConstructorDescriptionBundleFile(FileSystemAdapter<?, F> fileSystem, F file, Charset encoding, MessageBundleManager.BundleFileCoordinates coordinates, String displayPath) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(BundleFile<F> o) voiddelete()protected voidbooleanexists()findLineNumberOfKey(String messageKey) findLineNumberOfKeys(Collection<String> messageKeys) getComment(String messageKey) getKeys()getMessage(String messageKey) booleanhasMessage(String messageKey) booleanhasMessageKey(String messageKey) booleanisEmpty()booleanisMessageEmpty(String messageKey) booleanbooleanbooleanremoveMessage(String messageKey) booleansave()booleansave(boolean force) voidsetComment(String messageKey, String comment) voidsetMessage(String messageKey, String message)
-
Constructor Details
-
Method Details
-
getLocation
-
getDisplayPath
-
getBundleName
-
getLocale
-
isReadOnly
public boolean isReadOnly() -
isEmpty
public boolean isEmpty() -
getKeys
-
hasMessageKey
-
isMessageEmpty
-
hasMessage
-
getMessage
-
setMessage
-
removeMessage
-
getComment
-
setComment
-
findLineNumberOfKey
- Throws:
BundleException
-
findLineNumberOfKeys
public Map<String,Integer> findLineNumberOfKeys(Collection<String> messageKeys) throws BundleException - Throws:
BundleException
-
exists
public boolean exists() -
needsSaving
public boolean needsSaving() -
needsSorting
public boolean needsSorting() -
save
- Throws:
BundleException
-
save
- Throws:
BundleException
-
ensureLoaded
- Throws:
BundleException
-
delete
- Throws:
BundleException
-