Class Page
java.lang.Object
edu.kit.datamanager.takita.model.page.Page
The Page class represents the model of an abstract Page.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(Annotation annotation) Adds an annotation to list of annotations.Gets all annotations belonging to page.Gets the Date it was created.getId()Gets Id of page.Gets the date it was last modified.Gets manuscript Id of manuscript to which the page belongs to.Gets the pageNumber.Gets the resource type.abstract StringGets the url of the resource of a page.abstract StringGets the url of the resource of a thumbnail.voidsetAnnotations(List<Annotation> annotations) Sets all annotation belonging to page.voidsetLastModified(Instant lastModified) Sets the date is was last modified.voidsetManuscriptId(String manuscriptId) Sets manuscript Id of manuscript to which the page belongs to.
-
Field Details
-
annotations
-
resourceUrl
-
thumbResourceUrl
-
-
Constructor Details
-
Page
public Page(String id, ResourceType resourceType, String pageNumber, Instant created, String resourceUrl) Constructor for Page, only sets Id.- Parameters:
id- to be set, only id String and not linkresourceType- the resourceType of the pagepageNumber- the identifier of the pagecreated- the date the page was createdresourceUrl- the url that points at the resource
-
-
Method Details
-
getId
Gets Id of page.- Returns:
- pageId
-
getManuscriptId
Gets manuscript Id of manuscript to which the page belongs to.- Returns:
- manuscriptId
-
setManuscriptId
Sets manuscript Id of manuscript to which the page belongs to.- Parameters:
manuscriptId- to be set
-
getResourceType
Gets the resource type.- Returns:
- the resource type
-
getLastModified
Gets the date it was last modified.- Returns:
- the date
-
setLastModified
Sets the date is was last modified.- Parameters:
lastModified- the date to set
-
getPageNumber
Gets the pageNumber.- Returns:
- the pageNumber
-
getCreated
Gets the Date it was created.- Returns:
- the Date
-
getResourceUrl
Gets the url of the resource of a page.- Returns:
- url as String
-
getThumbResourceUrl
Gets the url of the resource of a thumbnail.- Returns:
- url as String
-
getAnnotations
Gets all annotations belonging to page.- Returns:
- list of annotations
-
setAnnotations
Sets all annotation belonging to page.- Parameters:
annotations- to be set
-
addAnnotation
Adds an annotation to list of annotations.- Parameters:
annotation- to be added
-