blob: fa2f546a338385dd6594e792c1d0334e113939ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.document.annotation;
import com.yahoo.document.datatypes.StringFieldValue;
/**
* An interface to be implemented by classes that can be parents of SpanNodes.
*
* @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
* @see SpanNode#getParent()
*/
public interface SpanNodeParent {
/**
* Returns the SpanTree of this, if any.
*
* @return the SpanTree of this, if it belongs to a SpanTree, otherwise null.
*/
public SpanTree getSpanTree();
/**
* Returns the StringFieldValue that this node belongs to, if any.
*
* @return the StringFieldValue that this node belongs to, if any, otherwise null.
*/
public StringFieldValue getStringFieldValue();
}
|