|
||||||||||
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.BibtexEntry
public class BibtexEntry
An entry is something that can be referenced by a latex file using the \cite command. E.g.
@inproceedings{diwan98typebased, year=1998, pages={106-117}, title={Type-Based Alias Analysis}, url={citeseer.nj.nec.com/diwan98typebased.html}, booktitle={SIGPLAN Conference on Programming Language Design and Implementation}, author={Amer Diwan and Kathryn S. McKinley and J. Eliot B. Moss}, }For an example of how to create BibtexEntry objects, check out the documentation for the constructor of BibtexNode.
Constructor Summary | |
---|---|
protected |
BibtexEntry(BibtexFile file,
String entryType,
String entryKey)
Instantiates a new BibtexEntry . |
Method Summary | |
---|---|
String |
getEntryKey()
Returns the key of this entry. |
String |
getEntryType()
Returns the type of this entry. |
Map<String,BibtexAbstractValue> |
getFields()
Returns a read only view of the field map. |
BibtexAbstractValue |
getFieldValue(String name)
Returns the value of field specified by the passed field name. |
void |
printBibtex(PrintWriter writer)
Prints the node to the passed PrintWriter . |
void |
setEntryKey(String entryKey)
Sets the entryKey. |
void |
setEntryType(String entryType)
Sets the entryType. |
void |
setField(String fieldName,
BibtexAbstractValue fieldValue)
Sets a field within this entry. |
void |
undefineField(String fieldName)
Removes the field from this entry. |
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 BibtexEntry(BibtexFile file, String entryType, String entryKey)
BibtexEntry
.
file
- The file that includes this entry.entryType
- The type of the entry.entryKey
- The key of the entry.Method Detail |
---|
public String getEntryKey()
null
if it is not set.public BibtexAbstractValue getFieldValue(String name)
name
- The name of the field whose value is requested.
null
if it is not set.public String getEntryType()
null
if it is not set.public Map<String,BibtexAbstractValue> getFields()
BibtexAbstractValue
.
public void setField(String fieldName, BibtexAbstractValue fieldValue)
fieldName
- The name of the field.fieldValue
- The value of the field.public void setEntryKey(String entryKey)
entryKey
- The entryKey to setpublic void setEntryType(String entryType)
entryType
- The entryType to setpublic 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.public void undefineField(String fieldName)
fieldName
- The name of the field that shall be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |