org.jbibtex.KeyValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbibtex Show documentation
Show all versions of jbibtex Show documentation
Java BibTeX parser and formatter
The newest version!
/*
* Copyright (c) 2012 University of Tartu
*/
package org.jbibtex;
public class KeyValue extends Value {
private String string = null;
KeyValue(){
}
public KeyValue(String string){
setString(string);
}
public Key toKey(){
Key key = new Key(getString());
return key;
}
@Override
protected String format(){
return getString();
}
@Override
public String toUserString(){
return getString();
}
public String getString(){
return this.string;
}
private void setString(String string){
this.string = string;
}
}