|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttextractor.datamodel.Author
public class Author
An author for an Article.
| Field Summary | |
|---|---|
static MutableString |
EMPTY_MUTABLE_STRING
An empty mutable string. |
| Constructor Summary | |
|---|---|
Author(String fullName)
An author will full name such as "Michael J. |
|
Author(String lastNameVal,
String firstNameVal,
String initialsVal)
Constructor. |
|
| Method Summary | |
|---|---|
static MutableString |
getAuthorsIndexText(List<Author> authors)
Given a list of authors, reutrn the index text for the entire list. |
String |
getFirstName()
Get the author's first name. |
String |
getIndexableText()
The text that represents this author, used for indexing. |
String |
getInitials()
Get the author's initials. |
String |
getLastName()
Get the author's last name. |
static String |
indexableName(String originalName)
|
static String |
makeInitials(String firstNameVal,
String initialsVal)
Given firstNameVal and initialsVal, return the initials for the author. |
String |
toString()
Human readable version of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final MutableString EMPTY_MUTABLE_STRING
| Constructor Detail |
|---|
public Author(String lastNameVal,
String firstNameVal,
String initialsVal)
lastNameVal - the author's last namefirstNameVal - the author's first nameinitialsVal - the author's initials (if not provided they will be created based
on the value in firstNameVal)public Author(String fullName)
fullName - the authors full name.| Method Detail |
|---|
public String getLastName()
public String getFirstName()
public String getInitials()
public static String makeInitials(String firstNameVal,
String initialsVal)
firstNameVal - the first name to use as a fallback value for the initials
in the case that initialsVal is null or emptyinitialsVal - the authors initials
public String getIndexableText()
public static String indexableName(String originalName)
public static MutableString getAuthorsIndexText(List<Author> authors)
authors - the list of authors
public String toString()
toString in class Object
|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||