summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition/document/annotation/SDAnnotationType.java
blob: 0f8e200c4c6120657f082daa56f70d342c4c297b (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
// 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.searchdefinition.document.SDDocumentType;
import com.yahoo.document.annotation.AnnotationType;

/**
 * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
 */
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;
    }
}