Package edu.harvard.hul.ois.jhove
Class Document
- java.lang.Object
-
- edu.harvard.hul.ois.jhove.Document
-
public class Document extends Object
This class encapsulates information about format specification documents.- See Also:
DocumentType
-
-
Constructor Summary
Constructors Constructor Description Document(String title, DocumentType type)Creates a Document with a given title and one of the predefined DocumentTypes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Agent>getAuthor()Returns a List of Agents, each representing an author of this Document.StringgetDate()Returns the date of this DocumentStringgetEdition()Returns informaton on the edition of this DocumentStringgetEnumeration()Returns the enumeration (e.g., serial volume and number) of this DocumentList<Identifier>getIdentifier()Returns the list of formal Identifiers for this Document.StringgetNote()Returns the note associated with this DocumentStringgetPages()Returns pagination information for this DocumentList<Agent>getPublisher()Returns a List of Agents, each representing a publisher of this Document.StringgetTitle()Returns the title of this DocumentDocumentTypegetType()Returns one of the predefined DocumentTypes as the type of this DocumentvoidsetAuthor(Agent author)Adds an author to the list of authorsvoidsetDate(String date)Sets the date of this DocumentvoidsetEdition(String edition)Sets edition information for this DocumentvoidsetEnumeration(String enm)Sets enumeration information (e.g., serial volume and number) for this DocumentvoidsetIdentifier(Identifier identifier)Adds an Identifier to the list of identifiersvoidsetNote(String note)Sets a note giving additional information about this DocumentvoidsetPages(String pages)Sets pagination information for this DocumentvoidsetPublisher(Agent publisher)Adds a publisher to the list of publishers
-
-
-
Constructor Detail
-
Document
public Document(String title, DocumentType type)
Creates a Document with a given title and one of the predefined DocumentTypes.
-
-
Method Detail
-
getAuthor
public List<Agent> getAuthor()
Returns a List of Agents, each representing an author of this Document. Returns an empty list if no authors have been listed.- See Also:
Agent
-
getDate
public String getDate()
Returns the date of this Document
-
getEdition
public String getEdition()
Returns informaton on the edition of this Document
-
getEnumeration
public String getEnumeration()
Returns the enumeration (e.g., serial volume and number) of this Document
-
getIdentifier
public List<Identifier> getIdentifier()
Returns the list of formal Identifiers for this Document. If no Identifiers are given, returns an empty list.
-
getNote
public String getNote()
Returns the note associated with this Document
-
getPages
public String getPages()
Returns pagination information for this Document
-
getPublisher
public List<Agent> getPublisher()
Returns a List of Agents, each representing a publisher of this Document. If no publishers are listed, returns an empty list.
-
getTitle
public String getTitle()
Returns the title of this Document
-
getType
public DocumentType getType()
Returns one of the predefined DocumentTypes as the type of this Document
-
setAuthor
public void setAuthor(Agent author)
Adds an author to the list of authors
-
setDate
public void setDate(String date)
Sets the date of this Document
-
setEdition
public void setEdition(String edition)
Sets edition information for this Document
-
setEnumeration
public void setEnumeration(String enm)
Sets enumeration information (e.g., serial volume and number) for this Document
-
setIdentifier
public void setIdentifier(Identifier identifier)
Adds an Identifier to the list of identifiers
-
setNote
public void setNote(String note)
Sets a note giving additional information about this Document
-
setPages
public void setPages(String pages)
Sets pagination information for this Document
-
setPublisher
public void setPublisher(Agent publisher)
Adds a publisher to the list of publishers
-
-