![JAR search and dependency download from the Maven repository](/logo.png)
org.jbibtex.ReferenceValue 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
/*
* Copyright (c) 2012 University of Tartu
*/
package org.jbibtex;
public class ReferenceValue extends Value implements Resolvable {
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 toUserString(){
BibTeXString string = getString();
if(string != null){
return (string.getValue()).toUserString();
}
return getValue().toUserString();
}
/**
* @see BibTeXParser#checkStringResolution(Key, BibTeXString)
*/
@Override
public boolean isResolved(){
return getString() != null;
}
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy