aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/query/textualrepresentation/Discloser.java
blob: 1d7372a2497b030e3aa8aab217c126322b4cde79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2017 Yahoo Holdings. 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);
}