Package de.bcxp.challenge.common.model
Class Document
java.lang.Object
de.bcxp.challenge.common.model.Document
Represents an abstract document containing a list of
Subclasses should define specific behavior for different types of documents.
DocumentEntry
objects. Subclasses should define specific behavior for different types of documents.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<DocumentEntry>
A list ofDocumentEntry
objects present in the represented document.private static final org.apache.logging.log4j.Logger
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
private static final org.apache.logging.log4j.Logger logger -
entries
A list ofDocumentEntry
objects present in the represented document.Consideration was given to represent entries as a
Set
to avoid saving duplicate entries. AList
was chosen to represent the entries since there might be documents with identical entries that could be valid.
-
-
Constructor Details
-
Document
Constructs a newDocument
.- Parameters:
entries
- aList
ofDocumentEntry
objects that represent the Document contents- Throws:
DocumentCreationException
-
-
Method Details