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:
  • Constructor Details

    • Document

      public Document(String title, DocumentType type)
      Creates a Document with a given title and one of the predefined DocumentTypes.
  • Method Details

    • 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:
    • 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