Package org.dspace.content
Class DCPersonName
- java.lang.Object
-
- org.dspace.content.DCPersonName
-
public class DCPersonName extends Object
DSpace person name utility classPerson names in the Dublin Core value table in the DSpace database are stored in the following simple format:
Lastname, First name(s)FIXME: No policy for dealing with "van"/"van der" and "Jr."
- Version:
- $Revision$
- Author:
- Robert Tansley
-
-
Constructor Summary
Constructors Constructor Description DCPersonName()Construct a blank nameDCPersonName(String rawValue)Construct a name from a raw DC valueDCPersonName(String lastNameIn, String firstNamesIn)Construct a name from a last name and first name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFirstNames()Get the first name(s).StringgetLastName()Get the last name.StringtoString()Return a string for writing the name to the database
-
-
-
Constructor Detail
-
DCPersonName
public DCPersonName()
Construct a blank name
-
DCPersonName
public DCPersonName(String rawValue)
Construct a name from a raw DC value- Parameters:
rawValue- the value entry from the database
-
-
Method Detail
-
toString
public String toString()
Return a string for writing the name to the database
-
getFirstNames
public String getFirstNames()
Get the first name(s). Guaranteed non-null.- Returns:
- the first name(s), or an empty string if none
-
getLastName
public String getLastName()
Get the last name. Guaranteed non-null.- Returns:
- the last name, or an empty string if none
-
-