Package org.dspace.content
Class DCPersonName
java.lang.Object
org.dspace.content.DCPersonName
DSpace person name utility class
Person 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."
- Author:
- Robert Tansley
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct 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
Modifier and TypeMethodDescriptionGet the first name(s).Get the last name.toString()Return a string for writing the name to the database
-
Constructor Details
-
DCPersonName
public DCPersonName()Construct a blank name -
DCPersonName
Construct a name from a raw DC value- Parameters:
rawValue- the value entry from the database
-
DCPersonName
Construct a name from a last name and first name- Parameters:
lastNameIn- the last namefirstNamesIn- the first names
-
-
Method Details
-
toString
Return a string for writing the name to the database -
getFirstNames
Get the first name(s). Guaranteed non-null.- Returns:
- the first name(s), or an empty string if none
-
getLastName
Get the last name. Guaranteed non-null.- Returns:
- the last name, or an empty string if none
-