public class NoOpDocumentElement extends Object implements DocumentElement
| 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.
|
static NoOpDocumentElement |
get() |
public static NoOpDocumentElement get()
public <F> void addValue(IndexFieldReference<F> fieldReference, F value)
DocumentElementThis method can be called multiple times for the same field, which will result in multiple values being added to the same field.
addValue in interface DocumentElementF - The type of values for the given field.fieldReference - The field to add a value to.value - The value to add to the field.public DocumentElement addObject(IndexObjectFieldReference fieldReference)
DocumentElementaddObject in interface DocumentElementfieldReference - The object field to add an object to.public void addNullObject(IndexObjectFieldReference fieldReference)
DocumentElementnull 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.
addNullObject in interface DocumentElementfieldReference - The object field to add a null object to.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.