Class ProcessedDocumentWithTitle
java.lang.Object
es.uvigo.esei.sing.textproc.entity.ProcessedDocument
es.uvigo.esei.sing.textproc.entity.ProcessedDocumentWithTitle
@MappedSuperclass public abstract class ProcessedDocumentWithTitle extends ProcessedDocument
Represents a processed text document which has a title.
- Author:
- Alejandro González García
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProcessedDocumentWithTitle()
Dummy default constructor, to be used by JPA only.protected
ProcessedDocumentWithTitle(int id, java.lang.String text, @NonNull java.lang.String title)
Creates a new processed text document which has a title with the given parameters.protected
ProcessedDocumentWithTitle(@NonNull java.lang.Integer id)
Dummy constructor that only assigns a primary key. -
Method Summary
Modifier and Type Method Description java.lang.String
toString()
-
Constructor Details
-
ProcessedDocumentWithTitle
protected ProcessedDocumentWithTitle(int id, java.lang.String text, @NonNull @NonNull java.lang.String title)Creates a new processed text document which has a title with the given parameters.- Parameters:
id
- The ID of the processed text document with title, that must match the ID of a text document which has a title.text
- The processed text of the document, with tokens separated by spaces.title
- The processed title of the text document.- Throws:
java.lang.IllegalArgumentException
- If any parameter isnull
.
-
ProcessedDocumentWithTitle
Dummy constructor that only assigns a primary key. Intended for usage when the rest of the entity attributes are to be be assigned later.- Parameters:
id
- The primary key of the entity.- Throws:
java.lang.IllegalArgumentException
- Ifid
isnull
.
-
ProcessedDocumentWithTitle
protected ProcessedDocumentWithTitle()Dummy default constructor, to be used by JPA only.
-
-
Method Details
-
toString
- Overrides:
toString
in classProcessedDocument
-