|
||||||||||
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.BibtexPerson
public final class BibtexPerson
BibtexPerson
objects are elements of BibtexPersonList
s, which can be used in author or editor
fields.
E.g. Charles Louis Xavier Joseph de la Vall{'e}e Poussin Jr:
first = "Charles Louis Xavier Joseph" preLast = "de la" last = "Vall{'e}e Poussin" lineage = "Jr"Fields that are not used are set to
null
. If isAndOthers
is true
, all fields
are ignored (should be null
).
Constructor Summary | |
---|---|
protected |
BibtexPerson(BibtexFile file,
String first,
String preLast,
String last,
String lineage,
boolean isOthers)
Instantiates a new BibtexPerson . |
Method Summary | |
---|---|
String |
getFirst()
Returns the first name of the person. |
String |
getLast()
Returns the last name of the person. |
String |
getLineage()
Returns the lineage of this person. |
String |
getPreLast()
Returns the middle name or any middle initials of this persons. |
boolean |
isOthers()
Returns true , if this instance represents the BibTex "Other authors" value; otherwise
false . |
void |
printBibtex(PrintWriter writer)
Prints the node to the passed PrintWriter . |
void |
setFirst(String first)
Sets the first. |
void |
setLast(String last)
Sets the last. |
void |
setLineage(String lineage)
Sets the lineage. |
void |
setOthers(boolean isAndOthers)
Sets the isAndOthers. |
void |
setPreLast(String preLast)
Sets the preLast. |
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 BibtexPerson(BibtexFile file, String first, String preLast, String last, String lineage, boolean isOthers)
BibtexPerson
.
file
- The file that includes this person.first
- The first name of the person.preLast
- The middle name or any initials of this person.last
- The last name of this person.lineage
- The lineage of this person.isOthers
- true
, if the created BibTexPerson
represents the BibTex
"Other authors" value.Method Detail |
---|
public String getFirst()
null
if it is not set.public boolean isOthers()
true
, if this instance represents the BibTex
"Other authors" value; otherwise
false
.
true
, if this instance represents the BibTex
"Other authors" value; otherwise
false
.public String getLast()
null
if it is not set.public String getLineage()
null
if it is not set.public String getPreLast()
null
if it is not set.public void setFirst(String first)
first
- The first to set.public void setOthers(boolean isAndOthers)
isAndOthers
- The isAndOthers to set.public void setLast(String last)
last
- The last to set.public void setLineage(String lineage)
lineage
- The lineage to set.public void setPreLast(String preLast)
preLast
- The preLast 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 |