blob: dc49979bec7c2cad1868aec6109060e486716b3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright 2016 Yahoo Inc. 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);
}
|