public interface DocumentElement
Instances may represent the document root as well as a partial view of the document, for instance a view on a specific "object" field nested inside the document.
| Modifier and Type | Method and Description |
|---|---|
void |
addNullObject(IndexObjectFieldReference fieldReference)
Add a
null object to the referenced field in this document element. |
DocumentElement |
addObject(IndexObjectFieldReference fieldReference)
Add a new object to the referenced field in this document element.
|
<F> void |
addValue(IndexFieldReference<F> fieldReference,
F value)
Add a new value to the referenced field in this document element.
|
<F> void addValue(IndexFieldReference<F> fieldReference, F value)
This method can be called multiple times for the same field, which will result in multiple values being added to the same field.
F - The type of values for the given field.fieldReference - The field to add a value to.value - The value to add to the field.DocumentElement addObject(IndexObjectFieldReference fieldReference)
fieldReference - The object field to add an object to.void addNullObject(IndexObjectFieldReference fieldReference)
null object to the referenced field in this document element.
The null object may have a representation in the backend (such as a JSON null),
or it may be ignored completely, depending on the backend implementation.
fieldReference - The object field to add a null object to.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.