blob: 7bced128ac5c52f6ed3d86c6402656fc7efb7791 (
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 tonytv
*/
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);
}
|