Class CMSCollectionTranslation
java.lang.Object
io.goobi.viewer.model.translations.Translation
io.goobi.viewer.model.cms.collections.CMSCollectionTranslation
- All Implemented Interfaces:
Serializable
A persistence object holding a translated String value.
- Author:
- Florian Alpers
- See Also:
-
Field Summary
Fields inherited from class io.goobi.viewer.model.translations.Translation
id, language, tag, translationValue -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CMSCollectionTranslation instance.Cloning constructor.CMSCollectionTranslation(String language, String value) Creates a new CMSCollectionTranslation instance. -
Method Summary
Modifier and TypeMethodDescriptiongetOwner()Getter for the fieldowner.voidsetOwner(CMSCollection owner) Setter for the fieldowner.Methods inherited from class io.goobi.viewer.model.translations.Translation
equals, getId, getLanguage, getTag, getTranslation, getTranslation, getTranslationValue, hashCode, isEmpty, setId, setLanguage, setTag, setTranslation, setTranslationValue, toString
-
Constructor Details
-
CMSCollectionTranslation
public CMSCollectionTranslation()Creates a new CMSCollectionTranslation instance. -
CMSCollectionTranslation
Creates a new CMSCollectionTranslation instance.- Parameters:
language- BCP 47 language code for this translationvalue- translated text value
-
CMSCollectionTranslation
Cloning constructor.- Parameters:
tr- translation to copyowner- collection that owns this translation
-
-
Method Details
-
getOwner
Getter for the fieldowner.- Returns:
- the CMS collection this translation belongs to
-
setOwner
Setter for the fieldowner.- Parameters:
owner- the CMS collection this translation belongs to
-