Class DynamicCollectionTranslation
java.lang.Object
io.goobi.viewer.model.translations.Translation
io.goobi.viewer.model.cms.collections.DynamicCollectionTranslation
- All Implemented Interfaces:
Serializable
A persistence object holding a translated String value belonging to a
DynamicCollection. Uses the shared "translations" table with its own
owner foreign key column so it does not collide with other Translation subclasses.- See Also:
-
Field Summary
Fields inherited from class io.goobi.viewer.model.translations.Translation
id, language, tag, translationValue -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DynamicCollectionTranslation instance.Cloning constructor.DynamicCollectionTranslation(String language, String value) Creates a new DynamicCollectionTranslation instance. -
Method Summary
Modifier and TypeMethodDescriptiongetOwner()Getter for the fieldowner.voidsetOwner(DynamicCollection 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
-
DynamicCollectionTranslation
public DynamicCollectionTranslation()Creates a new DynamicCollectionTranslation instance. -
DynamicCollectionTranslation
Creates a new DynamicCollectionTranslation instance.- Parameters:
language- BCP 47 language code for this translationvalue- translated text value
-
DynamicCollectionTranslation
Cloning constructor.- Parameters:
tr- translation to copyowner- collection that owns this translation
-
-
Method Details
-
getOwner
Getter for the fieldowner.- Returns:
- the dynamic collection this translation belongs to
-
setOwner
Setter for the fieldowner.- Parameters:
owner- the dynamic collection this translation belongs to
-