Current usage: only methods getLastOnly, getFirstLast, and getLastFirst are used; all other methods are provided for completeness.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| public static final RemoveWordEnclosingAndOuterEnclosingBracesFormatter | |
| private final String | |
| private final String | |
| private Author | |
| private final String | |
| private final String | |
| public static final Author | OTHERS
Object indicating the |
| Access | Constructor and Description |
|---|---|
| public | Author(String
the first name of the author (may consist of several tokens, like "Charles Louis Xavier Joseph" in "Charles Louis Xavier Joseph de la Vall{'e}e Poussin") givenName, String the abbreviated first name of the author (may consist of several tokens, like "C. L. X. J." in "Charles Louis Xavier Joseph de la Vall{'e}e Poussin"). It is a responsibility of the caller to create a reasonable abbreviation of the first name. givenNameAbbreviated, String the von part of the author's name (may consist of several tokens, like "de la" in "Charles Louis Xavier Joseph de la Vall{'e}e Poussin") namePrefix, String the last name of the author (may consist of several tokens, like "Vall{'e}e Poussin" in "Charles Louis Xavier Joseph de la Vall{'e}e Poussin") familyName, String the junior part of the author's name (may consist of several tokens, like "Jr. III" in "Smith, Jr. III, John") nameSuffix)Creates the Author object. |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public boolean | Returns: true iff the other object is an Author and all fields are Objects.equals.Overrides java. Compare this object with the given one. |
| public String | Returns: 'von Last, Jr., First' (ifabbr==false) or 'von Last, Jr., F.' (if abbr==true)true - abbreviate first name, false - do not abbreviateReturns the author's name in form 'von Last, Jr., First' with the first name full or abbreviated depending on parameter. |
| public Optional | Returns: last name of the author (may consist of several tokens)Returns the last name of the author stored in this object ("Last"). |
| public String | Returns: 'First von Last, Jr.' (ifabbr==false) or 'F. von Last, Jr.' (if abbr==true)true - abbreviate first name, false - do not abbreviateReturns the author's name in form 'First von Last, Jr.' with the first name full or abbreviated depending on parameter. |
| public Optional | Returns: first name of the author (may consist of several tokens)Returns the first name of the author stored in this object ("First"). |
| public Optional | Returns: abbreviated first name of the author (may consist of several tokens)Returns the abbreviated first name of the author stored in this object ("F."). |
| public String | Returns: "Last, Jr, F." as described above or "" if all these parts are empty.Returns the name as "Last, Jr, F." omitting the von-part and removing starting braces. |
| public Optional | Returns: von part of the author's name (may consist of several tokens)Returns the von part of the author's name stored in this object ("von", "name prefix"). |
| public String | |
| public Optional | Returns: junior part of the author's name (may consist of several tokens) or null if the author does not have a Jr. PartReturns the name suffix ("junior") part of the author's name stored in this object ("Jr"). |
| public int | |
| public Author | |
| public String |
| familyName | back to summary |
|---|---|
| private final String familyName | |
| FORMATTER | back to summary |
|---|---|
| public static final RemoveWordEnclosingAndOuterEnclosingBracesFormatter FORMATTER | |
| givenName | back to summary |
|---|---|
| private final String givenName | |
| givenNameAbbreviated | back to summary |
|---|---|
| private final String givenNameAbbreviated | |
| latexFreeAuthor | back to summary |
|---|---|
| private Author latexFreeAuthor | |
| namePrefix | back to summary |
|---|---|
| private final String namePrefix | |
| nameSuffix | back to summary |
|---|---|
| private final String nameSuffix | |
| OTHERS | back to summary |
|---|---|
| public static final Author OTHERS Object indicating the | |
| Author | back to summary |
|---|---|
| public Author(String givenName, String givenNameAbbreviated, String namePrefix, String familyName, String nameSuffix) Creates the Author object. If any part of the name is absent, In case only the last part is passed, enclosing braces are
| |
| addDotIfAbbreviation | back to summary |
|---|---|
| public static String addDotIfAbbreviation(String name) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Compare this object with the given one.
| |
| getFamilyGiven | back to summary |
|---|---|
| public String getFamilyGiven(boolean abbr) Returns the author's name in form 'von Last, Jr., First' with the first name full or abbreviated depending on parameter.
| |
| getFamilyName | back to summary |
|---|---|
| public Optional Returns the last name of the author stored in this object ("Last"). | |
| getGivenFamily | back to summary |
|---|---|
| public String getGivenFamily(boolean abbr) Returns the author's name in form 'First von Last, Jr.' with the first name full or abbreviated depending on parameter.
| |
| getGivenName | back to summary |
|---|---|
| public Optional Returns the first name of the author stored in this object ("First"). | |
| getGivenNameAbbreviated | back to summary |
|---|---|
| public Optional Returns the abbreviated first name of the author stored in this object ("F."). | |
| getNameForAlphabetization | back to summary |
|---|---|
| public String getNameForAlphabetization() Returns the name as "Last, Jr, F." omitting the von-part and removing starting braces.
| |
| getNamePrefix | back to summary |
|---|---|
| public Optional Returns the von part of the author's name stored in this object ("von", "name prefix"). | |
| getNamePrefixAndFamilyName | back to summary |
|---|---|
| public String getNamePrefixAndFamilyName() Returns von-part followed by last name ("von Last"). If both fields were specified as
| |
| getNameSuffix | back to summary |
|---|---|
| public Optional Returns the name suffix ("junior") part of the author's name stored in this object ("Jr"). | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| latexFree | back to summary |
|---|---|
| public Author latexFree() Returns a LaTeX-free version of this | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |