Revision 5fb22ea7
Added by Andreas Müller over 13 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/Language.java | ||
---|---|---|
544 | 544 |
return new Language(uuid); |
545 | 545 |
} |
546 | 546 |
|
547 |
/** |
|
548 |
* Creates a new language instance with a description (in the {@link Language#DEFAULT() default language}), |
|
549 |
* a label and a label abbreviation. |
|
550 |
* |
|
551 |
* @param term the string (in the default language) describing the |
|
552 |
* new language to be created |
|
553 |
* @param label the string identifying the new language to be created |
|
554 |
* @param labelAbbrev the string identifying (in abbreviated form) the |
|
555 |
* new language to be created |
|
556 |
* @see #readCsvLine(List, Language) |
|
557 |
* @see #NewInstance() |
|
558 |
*/ |
|
559 |
public static Language NewInstance(String term, String label, String labelAbbrev){ |
|
560 |
return new Language(term, label, labelAbbrev); |
|
561 |
} |
|
562 |
|
|
563 |
|
|
547 | 564 |
@XmlAttribute(name = "iso639_1") |
548 | 565 |
//TODO create userDefinedType ? |
549 | 566 |
@Column(length=2) |
Also available in: Unified diff
minor