aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/query/textualrepresentation/Discloser.java
blob: f2b9e3636b312f8d98478b105af595a54e005163 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.query.textualrepresentation;

import com.yahoo.prelude.query.Item;

/**
 * Allows an item to disclose its properties and children/value.
 *
 * @author Tony Vaagenes
 */
public interface Discloser {

    void addProperty(String key, Object value);

    //A given item should either call setValue or addChild, not both.
    void setValue(Object value);
    void addChild(Item item);

}