6 from utils.attr
import check_date_format
9 """! "Global Information is a class for administrative information and other general attributes, such as /language coding/ or /script coding/, which are valid for the entire lexical resource." (LMF)
12 """! @brief Constructor.
13 GlobalInformation instance is owned by LexicalResource.
14 @return A GlobalInformation instance.
29 """! @brief Destructor.
34 """! @brief Set global information language code.
35 @param language_code The language code to use.
36 @return GlobalInformation instance.
38 self.languageCode = language_code
42 """! @brief Get global information language code.
43 @return GlobalInformation attribute 'languageCode'.
48 """! @brief Set global information version.
49 @param version The version to set.
50 @return GlobalInformation version.
56 """! @brief Get global information version.
57 @return GlobalInformation attribute 'version'.
62 """! @brief Set global information license.
63 @param license The license to set.
64 @return GlobalInformation instance.
70 """! @brief Get global information license.
71 @return GlobalInformation attribute 'license'.
76 """! @brief Set global information character encoding.
77 @param character_encoding The character encoding to use.
78 @return GlobalInformation instance.
84 """! @brief Get global information character encoding.
85 @return GlobalInformation attribute 'characterEncoding'.
90 """! @brief Set global information date coding.
91 @param date_coding The date coding to use.
92 @return GlobalInformation instance.
98 """! @brief Get global information date coding.
99 @return GlobalInformation attribute 'dateCoding'.
104 """! @brief Set global information project name.
105 @param project_name The project name to set.
106 @return GlobalInformation instance.
112 """! @brief Get global information project name.
113 @return GlobalInformation attribute 'projectName'.
118 """! @brief Set global information creation date.
119 @param date The date to set.
120 @return GlobalInformation instance.
127 """! @brief Get global information creation date.
128 @return GlobalInformation attribute 'creationDate'.
133 """! @brief Set global information last update.
134 @param date The date to set.
135 @return GlobalInformation instance.
142 """! @brief Get global information last update.
143 @return GlobalInformation attribute 'lastUpdate'.
148 """! @brief Set global information author.
149 @param author The author's name to set.
150 @return GlobalInformation instance.
156 """! @brief Get global information author.
157 @return GlobalInformation attribute 'author'.
162 """! @brief Set global information description.
163 @param description The description to set.
164 @return GlobalInformation instance.
170 """! @brief Get global information description.
171 @return GlobalInformation attribute 'description'.
176 """! @brief Compute bibliographic citation from date and author.
177 Set GlobalInformation attribute 'bibliographicCitation'.
186 """! @brief Get global information bibliographic citation.
187 @return GlobalInformation attribute 'bibliographicCitation'.
def check_date_format
Verify that date format is composed as follows: YYYY-MM-DD (ISO 8601).