Class Book
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, Temporal<TimeCoordinate>, Property
Represents a book or publication within the literary arts.
Captures bibliographic data according to standard library metadata formats.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class PotentialResource
id, traits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a formatted academic citation in a simplified APA/MLA style.getGenre()getIsbn()intgetPages()getTitle()voidsetGenre(Book.Genre genre) voidvoidsetLanguage(String language) voidsetPages(int pages) voidsetPublisher(String publisher) voidsetSynopsis(String synopsis) toString()Methods inherited from class Artwork
addAnalysis, addAuthor, addAuthor, addRestoration, equals, getAnalyses, getAuthors, getCategory, getRestorations, hashCodeMethods inherited from class MaterialResource
getValue, setValueMethods inherited from class Resource
addOwner, getOwners, getPosition, getProducer, getProductionDate, getProductionPlace, getTimestamp, getWhen, removeOwner, setId, setOwners, setPositionMethods inherited from class PotentialResource
getAmount, getDecayTime, getDescription, getId, getKind, getTraits, setDecaySeconds, setDecayTime, setDescription, setKind, setQuantityMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Book
Creates a new Book with just a title.- Parameters:
title- the title of the book
-
Book
-
Book
Creates a new Book with basic bibliographic info.- Parameters:
title- the titleisbn- the ISBNpublicationDate- the date of publication
-
-
Method Details
-
getTitle
-
getIsbn
-
getPublisher
-
getPages
public int getPages() -
getGenre
-
getLanguage
-
getSynopsis
-
setIsbn
-
setPublisher
-
setPages
public void setPages(int pages) -
setGenre
-
setLanguage
-
setSynopsis
-
getCitation
Returns a formatted academic citation in a simplified APA/MLA style.- Returns:
- citation string
-
toString
-