Populate data/ hierarchy
[yangtools.git] / yang / yang-model-ri / src / main / java / org / opendaylight / yangtools / yang / model / ri / stmt / impl / eff / EmptyStatusEffectiveStatement.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.model.ri.stmt.impl.eff;
9
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.yangtools.yang.model.api.Status;
12 import org.opendaylight.yangtools.yang.model.api.stmt.StatusEffectiveStatement;
13 import org.opendaylight.yangtools.yang.model.api.stmt.StatusStatement;
14 import org.opendaylight.yangtools.yang.model.ri.stmt.impl.decl.EmptyStatusStatement;
15 import org.opendaylight.yangtools.yang.model.spi.meta.AbstractDeclaredEffectiveStatement.DefaultArgument;
16
17 public final class EmptyStatusEffectiveStatement extends DefaultArgument<Status, StatusStatement>
18         implements StatusEffectiveStatement {
19     /*
20      * status has low argument cardinality, hence we can reuse them in case declaration does not have any
21      * substatements (which is the usual case). Yeah, we could consider an EnumMap, but this is not too bad, either.
22      */
23     public static final @NonNull EmptyStatusEffectiveStatement CURRENT =
24         new EmptyStatusEffectiveStatement(EmptyStatusStatement.CURRENT);
25     public static final @NonNull EmptyStatusEffectiveStatement DEPRECATED =
26         new EmptyStatusEffectiveStatement(EmptyStatusStatement.DEPRECATED);
27     public static final @NonNull EmptyStatusEffectiveStatement OBSOLETE =
28         new EmptyStatusEffectiveStatement(EmptyStatusStatement.OBSOLETE);
29
30     public EmptyStatusEffectiveStatement(final StatusStatement declared) {
31         super(declared);
32     }
33 }