|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hpi.fgis.dude.util.bibtex.data.BibtexNode de.hpi.fgis.dude.util.bibtex.data.BibtexAbstractEntry de.hpi.fgis.dude.util.bibtex.data.BibtexMacroDefinition
public class BibtexMacroDefinition
BibTex
let's you define macros which are essentially just shortcuts for strings. Macros can reference
other macros, as long as there's no cycle.
Examples:
Constructor Summary | |
---|---|
protected |
BibtexMacroDefinition(BibtexFile file,
String key,
BibtexAbstractValue value)
Instantiates a new BibtexMacroDefinition . |
Method Summary | |
---|---|
String |
getKey()
Returns the key of the macro definition. |
BibtexAbstractValue |
getValue()
Returns the value of the macro definition. |
void |
printBibtex(PrintWriter writer)
Prints the node to the passed PrintWriter . |
void |
setKey(String key)
Sets the key. |
void |
setValue(BibtexAbstractValue value)
Sets the value. |
Methods inherited from class de.hpi.fgis.dude.util.bibtex.data.BibtexNode |
---|
getOwnerFile, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected BibtexMacroDefinition(BibtexFile file, String key, BibtexAbstractValue value)
BibtexMacroDefinition
.
file
- The file that contains this macro definition.key
- The key of the macro definition.value
- the value of the macro definition.Method Detail |
---|
public String getKey()
null
if it is not set.public BibtexAbstractValue getValue()
null
if it is not set.public void setKey(String key)
key
- The key to set.public void setValue(BibtexAbstractValue value)
value
- The value to set.public void printBibtex(PrintWriter writer)
BibtexNode
PrintWriter
. This method needs to be implemented by each sub-class.
printBibtex
in class BibtexNode
writer
- The writer that shall be used for writing the String representation of this node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |