blob: 8ffe0fde535482fc30ce8a5b4ea8682683da95ce (
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
27
28
|
// Copyright 2017 Yahoo Holdings. 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 Einar M R Rosenvinge
*/
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);
}
}
|