/*
 * Copyright (c) 2012 University of Tartu
 */
package org.jbibtex;

public class ReferenceValue extends Value {

	private KeyValue value = null;

	private BibTeXString string = null;


	public ReferenceValue(KeyValue value, BibTeXString string){
		setValue(value);
		setString(string);
	}

	@Override
	protected String format(){
		return getValue().format();
	}

	@Override
	public String toString(){
		return getValue().toString();
	}

	public KeyValue getValue(){
		return this.value;
	}

	private void setValue(KeyValue value){
		this.value = value;
	}

	public BibTeXString getString(){
		return this.string;
	}

	public void setString(BibTeXString string){
		this.string = string;
	}
}
@@ -389,32 +389,139 @@
 ing toString()%7B%0A
+%09%09BibTeXString string = getString();%0A%0A%09%09if(string != null)%7B%0A%09%09%09return (string.getValue()).toString();%0A%09%09%7D%0A%0A
 %09%09return getValu

Fixed the conversion to text