dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/solr/Language.java

39 lines
826 B
Java

package eu.dnetlib.dhp.schema.solr;
import java.io.Serializable;
public class Language implements Serializable {
/**
* alpha-3/ISO 639-2 code of the language
*/
private String code; // the classid in the Qualifier
/**
* Language label in English
*/
private String label; // the classname in the Qualifier
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public static Language newInstance(String code, String value) {
Language qualifier = new Language();
qualifier.setCode(code);
qualifier.setLabel(value);
return qualifier;
}
}