public interface DocumentEntity
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DocumentEntity.DocumentEntityProvider
A provider of
DocumentEntity where it will return from the document entity name. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Document document)
add a document within
DocumentEntity |
void |
add(String documentName,
Object value)
add a document within
DocumentEntity |
void |
add(String documentName,
Value value)
add a document within
DocumentEntity |
void |
addAll(Iterable<Document> documents)
add all documents within
DocumentEntity |
void |
clear()
Removes all Documents
|
boolean |
contains(String documentName)
Returns true if this DocumentEntity contains a document whose the name is informed
|
DocumentEntity |
copy()
make copy of itself
|
Optional<Document> |
find(String documentName)
Find document a document from document name
|
Set<String> |
getDocumentNames()
Returns a Set view of the names of document contained in Document Entity
|
List<Document> |
getDocuments()
List of all documents
|
String |
getName()
The collection name to
DocumentEntity |
Collection<Value> |
getValues()
Returns a Collection view of the values contained in this DocumentEntity.
|
boolean |
isEmpty()
Returns true if this list contains no elements.
|
static DocumentEntity |
of(String name)
Creates a
DocumentEntity instance |
static DocumentEntity |
of(String name,
List<Document> documents)
Creates a
DocumentEntity instance |
boolean |
remove(String documentName)
Remove a Document whose name is informed in parameter.
|
int |
size()
Returns the number of elements in this list.
|
Map<String,Object> |
toMap()
Converts the columns to a Map where:
the key is the name the column
The value is the
Value.get() of the map |
static DocumentEntity of(String name)
DocumentEntity instancename - the name of the collectionDocumentEntity instanceNullPointerException - when name is nullstatic DocumentEntity of(String name, List<Document> documents)
DocumentEntity instancename - the collection namedocuments - the intial document inside DocumentEntityDocumentEntity instanceNullPointerException - when either name or documents are nullString getName()
DocumentEntityboolean remove(String documentName)
documentName - a document nameNullPointerException - when documentName is nullvoid add(Document document)
DocumentEntitydocument - a document to be includedUnsupportedOperationException - when this method is not supportedNullPointerException - when document is nullvoid add(String documentName, Object value)
DocumentEntitydocumentName - a name of the documentvalue - the information of the documentUnsupportedOperationException - when this method is not supportedNullPointerException - when either name or value are nullvoid add(String documentName, Value value)
DocumentEntitydocumentName - a name of the documentvalue - the information of the documentUnsupportedOperationException - when this method is not supportedNullPointerException - when either name or value are nullvoid addAll(Iterable<Document> documents)
DocumentEntitydocuments - documents to be includedUnsupportedOperationException - when this method is not supportedNullPointerException - when document is nullOptional<Document> find(String documentName)
documentName - a name of a documentOptional instance with the resultNullPointerException - when documentName is nullint size()
boolean isEmpty()
DocumentEntity copy()
void clear()
Set<String> getDocumentNames()
Collection<Value> getValues()
boolean contains(String documentName)
documentName - the document nameMap<String,Object> toMap()
Value.get() of the mapCopyright © 2017–2020 Eclipse Foundation. All rights reserved.