blob: 5b82b06890860e535604c9a440da9a92f564c8b7 (
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 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.document.annotation;
import com.yahoo.document.annotation.AnnotationReferenceDataType;
import com.yahoo.document.annotation.AnnotationType;
/**
* @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
*/
public class TemporaryAnnotationReferenceDataType extends AnnotationReferenceDataType {
private final String target;
public TemporaryAnnotationReferenceDataType(String target) {
this.target = target;
}
public String getTarget() {
return target;
}
@Override
public void setAnnotationType(AnnotationType type) {
super.setName("annotationreference<" + type.getName() + ">");
super.setAnnotationType(type);
}
}
|