Package edu.upf.taln.dri.lib.model.ext
Class AuthorImpl
- java.lang.Object
-
- edu.upf.taln.dri.lib.model.BaseDocumentElem
-
- edu.upf.taln.dri.lib.model.ext.AuthorImpl
-
- All Implemented Interfaces:
Author
public class AuthorImpl extends BaseDocumentElem implements Author
IMPORTANT: Never instantiate directly this class!
Sentence of a document together with its descriptive features.
-
-
Field Summary
-
Fields inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
cacheManager
-
-
Constructor Summary
Constructors Constructor Description AuthorImpl(DocCacheManager cacheManager)
AuthorImpl(DocCacheManager cacheManager, String fullName, String firstName, String surname)
AuthorImpl(DocCacheManager cacheManager, String fullName, String firstName, String surname, String email, List<Institution> affiliations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAffiliation(Institution institution)
String
asString(boolean compactOutput)
String representation of the objectList<Institution>
getAffiliations()
The affiliations of the authorString
getEmail()
The email of the authorString
getFirstName()
The first name of the authorString
getFullName()
The full name of the authorString
getPersonalPageURL()
The URL of the personal Web page of the authorString
getSurname()
The surname of the authorvoid
setEmail(String email)
void
setFirstName(String firstName)
void
setFullName(String fullName)
void
setPersonalPageURL(String personalPageURL)
void
setSurname(String surname)
-
Methods inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
getCacheManager, setCacheManager
-
-
-
-
Constructor Detail
-
AuthorImpl
public AuthorImpl(DocCacheManager cacheManager)
-
AuthorImpl
public AuthorImpl(DocCacheManager cacheManager, String fullName, String firstName, String surname)
-
AuthorImpl
public AuthorImpl(DocCacheManager cacheManager, String fullName, String firstName, String surname, String email, List<Institution> affiliations)
-
-
Method Detail
-
getFullName
public String getFullName()
Description copied from interface:Author
The full name of the author- Specified by:
getFullName
in interfaceAuthor
- Returns:
-
setFullName
public void setFullName(String fullName)
-
getFirstName
public String getFirstName()
Description copied from interface:Author
The first name of the author- Specified by:
getFirstName
in interfaceAuthor
- Returns:
-
setFirstName
public void setFirstName(String firstName)
-
getSurname
public String getSurname()
Description copied from interface:Author
The surname of the author- Specified by:
getSurname
in interfaceAuthor
- Returns:
-
setSurname
public void setSurname(String surname)
-
setEmail
public void setEmail(String email)
-
addAffiliation
public void addAffiliation(Institution institution)
-
getPersonalPageURL
public String getPersonalPageURL()
Description copied from interface:Author
The URL of the personal Web page of the author- Specified by:
getPersonalPageURL
in interfaceAuthor
- Returns:
-
setPersonalPageURL
public void setPersonalPageURL(String personalPageURL)
-
getAffiliations
public List<Institution> getAffiliations()
Description copied from interface:Author
The affiliations of the author- Specified by:
getAffiliations
in interfaceAuthor
- Returns:
-
-