|
||||||||||
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.BibtexAbstractValue de.hpi.fgis.dude.util.bibtex.data.BibtexString
public class BibtexString
A String - this class is used for numbers as well - if there's a number wrapped in here, the toString() method will be smart enough to leave out the braces, and thus print {1979} as 1979.
Constructor Summary | |
---|---|
protected |
BibtexString(BibtexFile file,
String content)
Creates a new BibTexString . |
Method Summary | |
---|---|
String |
getContent()
Returns the content String of this instance (without surrounding quotes or curly braces!). |
void |
printBibtex(PrintWriter writer)
Prints the node to the passed PrintWriter . |
void |
setContent(String content)
Sets the content. |
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 BibtexString(BibtexFile file, String content)
BibTexString
. The passed String should not be surround be the quotes or curly braces
already.
file
- The file that includes this String.content
- The content of this BibtexString
instance.Method Detail |
---|
public String getContent()
public void setContent(String content)
content
- The content to set.public void printBibtex(PrintWriter writer)
PrintWriter
. This method needs to be implemented by each sub-class.
Within this method surrounding curly braces will be printed.
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 |