Class TranslationPackageDiff
java.lang.Object
com.inductiveautomation.ignition.common.i18n.translation.BasicTranslationPackage
com.inductiveautomation.ignition.common.i18n.translation.TranslationPackageDiff
- All Implemented Interfaces:
- MutableTranslationPackage,- TranslationPackage,- Serializable,- Iterable<Translation>
public class TranslationPackageDiff
extends BasicTranslationPackage
implements MutableTranslationPackage, Iterable<Translation>
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.ignition.common.i18n.translation.BasicTranslationPackageBasicTranslationPackage.TranslationIterator
- 
Field SummaryFieldsModifier and TypeFieldDescription
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidEnsures that the specified key is in the translation package.voidaddTranslation(String key, Locale locale, String value) Sets a translation for the specified key and locale.voidaddTranslations(String key, TranslationMap translations) Sets all of the translations for a specific key.voidclearChanges(Locale locale) Removes any modified terms for the given locale.voidensureLocaleExists(Locale locale) Verifies that the locale is present, adding it if necessary.Returns an unmodifiable set of the removed keys *booleanbooleanisModified(String key) booleanisModified(String key, Locale locale) booleanbooleaniterator()protected TermKeyregisterIndexKey(String key) booleanRemoves the specific key, and any translations.voidremoveLocale(Locale locale) voidremoveTranslation(String term, Locale locale) Removes a translation for a specified key and locale.Methods inherited from class com.inductiveautomation.ignition.common.i18n.translation.BasicTranslationPackageapplyPackage, createDiff, equals, get, getAllTranslations, getAvailableKeys, getAvailableLocales, getBaseLocale, getBundle, getIndex, getKeyHashRule, getOrCreateBundle, getOrCreateTermKey, getOrNull, getStrict, getTermKey, getTranslationsFor, hashKey, isDefined, isDefined, setBaseLocale, setIndex, setKeyHashRule, updateIndexMethods inherited from class java.lang.Objectclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface com.inductiveautomation.ignition.common.i18n.translation.TranslationPackagecreateDiff, get, getAllTranslations, getAvailableKeys, getAvailableLocales, getBaseLocale, getKeyHashRule, getStrict, getTranslationsFor, isDefined, isDefined
- 
Field Details- 
removedKeys
- 
removedLocales
- 
removedTranslations
 
- 
- 
Constructor Details- 
TranslationPackageDiffpublic TranslationPackageDiff()
- 
TranslationPackageDiff
 
- 
- 
Method Details- 
getRemovedKeysReturns an unmodifiable set of the removed keys *
- 
getRemovedLocales
- 
addTermDescription copied from interface:MutableTranslationPackageEnsures that the specified key is in the translation package.- Specified by:
- addTermin interface- MutableTranslationPackage
- Overrides:
- addTermin class- BasicTranslationPackage
 
- 
isModified
- 
isModified
- 
isRemoved
- 
isRemoved
- 
clearChangesRemoves any modified terms for the given locale. Does not mark the locale as deleted. *
- 
registerIndexKey
- 
addTranslationDescription copied from interface:MutableTranslationPackageSets a translation for the specified key and locale.- Specified by:
- addTranslationin interface- MutableTranslationPackage
- Overrides:
- addTranslationin class- BasicTranslationPackage
 
- 
addTranslationsDescription copied from interface:MutableTranslationPackageSets all of the translations for a specific key. Translation map can be null, in which case the key will simply be registered in the index.- Specified by:
- addTranslationsin interface- MutableTranslationPackage
- Overrides:
- addTranslationsin class- BasicTranslationPackage
 
- 
removeTranslationDescription copied from interface:MutableTranslationPackageRemoves a translation for a specified key and locale. Used when someone had a translation and blanks it out.- Specified by:
- removeTranslationin interface- MutableTranslationPackage
- Overrides:
- removeTranslationin class- BasicTranslationPackage
 
- 
removeKeyDescription copied from interface:MutableTranslationPackageRemoves the specific key, and any translations.- Specified by:
- removeKeyin interface- MutableTranslationPackage
- Overrides:
- removeKeyin class- BasicTranslationPackage
- Returns:
- true if key was present
 
- 
ensureLocaleExistsDescription copied from interface:MutableTranslationPackageVerifies that the locale is present, adding it if necessary.- Specified by:
- ensureLocaleExistsin interface- MutableTranslationPackage
- Overrides:
- ensureLocaleExistsin class- BasicTranslationPackage
 
- 
removeLocale- Specified by:
- removeLocalein interface- MutableTranslationPackage
- Overrides:
- removeLocalein class- BasicTranslationPackage
 
- 
hasChangespublic boolean hasChanges()
- 
iterator- Specified by:
- iteratorin interface- Iterable<Translation>
 
- 
getRemovedTranslations
 
-