2 * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.model.spi.stmt.impl.eff;
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.spi.meta.AbstractDeclaredEffectiveStatement.DefaultArgument;
15 import org.opendaylight.yangtools.yang.model.spi.stmt.impl.decl.EmptyStatusStatement;
17 public final class EmptyStatusEffectiveStatement extends DefaultArgument<Status, StatusStatement>
18 implements StatusEffectiveStatement {
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.
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);
30 public EmptyStatusEffectiveStatement(final StatusStatement declared) {