This repository has been archived by the owner on Oct 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
DDBItem and Author
LichtiNam edited this page Dec 25, 2014
·
4 revisions
A short page about the DDBItem and Author which input are stored, please add here if something missing
DDBItem class
public class DDBItem {
private int maxResults;
private String id;
private String title;
private String subtitle;
private String imageUrl;
private String media;
private String category;
private String type;
//metadata
private ArrayList<Author> authors = null;
private String institution = null;
private Calendar publishedYear = null;
/**
* Creates a new DDBItem.
*
* @param id item ID in the DDB database
*/
public DDBItem(String id) {
this.id = id;
this.authors = new ArrayList<Author>();
}
Author class
public class Author {
private final String dnbId;
private String name;
private Calendar dateOfBirth = null;
private String placeOfBirth;
private Calendar dateOfDeath = null;
private String nationality;
/**
* Creates an Author.
*
* @param dnbId the ID assigned to the author by the DNB
*/
public Author(String dnbId) {
this.dnbId = dnbId;
}