it.uniroma2.art.sheet2rdf.header.HeaderNameStruct Maven / Gradle / Ivy
package it.uniroma2.art.sheet2rdf.header;
import java.util.Map;
import org.eclipse.rdf4j.model.IRI;
public class HeaderNameStruct {
private String fullName;
private String name;
private String lang;
private IRI datatype;
public HeaderNameStruct(String headerName, Map prefixMapping) {
this.fullName = headerName;
this.name = HeaderParser.parseId(headerName);
this.lang = HeaderParser.parseLanguage(headerName);
this.datatype = HeaderParser.parseDatatype(headerName, prefixMapping);
}
public String getFullName() {
return fullName;
}
public void setFullName(String completeName) {
this.fullName = completeName;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLang() {
return lang;
}
public void setLang(String lang) {
this.lang = lang;
}
public IRI getDatatype() {
return datatype;
}
public void setDatatype(IRI datatype) {
this.datatype = datatype;
}
public String toString() {
String s = "";
s += "fullName: " + this.fullName;
s += "; name: " + this.name;
s += "; lang: " + this.lang;
s += "; dt: " + this.datatype;
return s;
}
}