summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition/document/annotation/SDAnnotationType.java
blob: adf58ee683839532c767723d6c05c9da2467d12b (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
29
30
31
32
33
34
35
36
37
// 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.searchdefinition.document.SDDocumentType;
import com.yahoo.document.annotation.AnnotationType;

/**
 * @author Einar M R Rosenvinge
 */
public class SDAnnotationType extends AnnotationType {

    private SDDocumentType sdDocType;
    private String inherits;

    public SDAnnotationType(String name) {
        super(name);
    }

    public SDAnnotationType(String name, SDDocumentType dataType, String inherits) {
        super(name);
        this.sdDocType = dataType;
        this.inherits = inherits;
    }

    public SDDocumentType getSdDocType() {
        return sdDocType;
    }

    public String getInherits() {
        return inherits;
    }

    public void inherit(String inherits) {
        this.inherits = inherits;
    }

}