aboutsummaryrefslogtreecommitdiffstats
path: root/common/src/main/java/org/openecomp/mso/yangDecoder/transform/impl/NotificationAsContainer.java
blob: 31c894e6fb49272da9de0867e1b1861ac6c7b743 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package org.openecomp.mso.yangDecoder.transform.impl;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.AugmentationSchema;
import org.opendaylight.yangtools.yang.model.api.ConstraintDefinition;
import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
import org.opendaylight.yangtools.yang.model.api.GroupingDefinition;
import org.opendaylight.yangtools.yang.model.api.NotificationDefinition;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
import org.opendaylight.yangtools.yang.model.api.Status;
import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
import org.opendaylight.yangtools.yang.model.api.UsesNode;

final class NotificationAsContainer implements ContainerSchemaNode {
    private final NotificationDefinition delegate;

    public String getDescription() {
        return this.delegate.getDescription();
    }

    public String getReference() {
        return this.delegate.getReference();
    }

    public Set<TypeDefinition<?>> getTypeDefinitions() {
        return this.delegate.getTypeDefinitions();
    }

    public Set<GroupingDefinition> getGroupings() {
        return this.delegate.getGroupings();
    }

    public Status getStatus() {
        return this.delegate.getStatus();
    }

    public ContainerSchemaNode getInput() {
        return null;
    }

    public ContainerSchemaNode getOutput() {
        return null;
    }

    NotificationAsContainer(NotificationDefinition parentNode) {
        this.delegate = parentNode;
    }

    public QName getQName() {
        return this.delegate.getQName();
    }

    public SchemaPath getPath() {
        return this.delegate.getPath();
    }

    public List<UnknownSchemaNode> getUnknownSchemaNodes() {
        return Collections.emptyList();
    }

    public DataSchemaNode getDataChildByName(QName name) {
        return this.getDataChildByName(name.getLocalName());
    }

    public DataSchemaNode getDataChildByName(String name) {
        byte var3 = -1;
        switch(name.hashCode()) {
            case -1005512447:
                if(name.equals("output")) {
                    var3 = 1;
                }
                break;
            case 100358090:
                if(name.equals("input")) {
                    var3 = 0;
                }
        }

        switch(var3) {
            case 0:
                return null;
            case 1:
                return null;
            default:
                return null;
        }
    }

    public Set<UsesNode> getUses() {
        return Collections.emptySet();
    }

    public Set<AugmentationSchema> getAvailableAugmentations() {
        return Collections.emptySet();
    }

    public boolean isPresenceContainer() {
        return false;
    }

    public Collection<DataSchemaNode> getChildNodes() {
        ArrayList ret = new ArrayList();
        ret.addAll(this.delegate.getChildNodes());
        return ret;
    }

    public boolean isAugmenting() {
        return false;
    }

    public boolean isAddedByUses() {
        return false;
    }

    public boolean isConfiguration() {
        return false;
    }

    public ConstraintDefinition getConstraints() {
        return null;
    }
}