6 from utils.attr
import check_attr_type
9 """! "Equivalent is a class representing the translation equivalent of the word form managed by the Lemma class." (LMF)
12 """! @brief Constructor.
13 Equivalent instances are owned by Sense.
14 @return An Equivalent instance.
23 """! @brief Destructor.
24 Release TextRepresentation instances.
27 del text_representation
31 """! @brief Set translation and language.
32 @param translation The translation to set.
33 @param language Language used for the translation.
34 @return Equivalent instance.
36 error_msg =
"Translation value '%s' is not allowed" % translation
39 if language
is not None:
44 """! @brief Get translation.
45 @param language If this argument is given, get translation only if written in this language.
46 @return The filtered Equivalent attribute 'translation'.
52 """! @brief Set language used for translation.
53 @param language Language used for the translation.
54 @return Equivalent instance.
56 error_msg =
"Language value '%s' is not allowed" % language
62 """! @brief Get language used for translation.
63 @return Equivalent attribute 'language'.
text_representation
TextRepresentation instances are owned by Equivalent There is zero to many TextRepresentation instanc...
def check_attr_type
Check that attribute value is of specified type.
def set_language
Set language used for translation.
def get_language
Get language used for translation.
def get_translation
Get translation.
def set_translation
Set translation and language.
"Equivalent is a class representing the translation equivalent of the word form managed by the Lemma ...