2 * Copyright (c) 2015 Cisco Systems, Inc. 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.ri.stmt.impl.eff;
10 import static java.util.Objects.requireNonNull;
12 import org.eclipse.jdt.annotation.NonNull;
13 import org.opendaylight.yangtools.concepts.Immutable;
14 import org.opendaylight.yangtools.yang.common.QName;
15 import org.opendaylight.yangtools.yang.model.api.FeatureDefinition;
16 import org.opendaylight.yangtools.yang.model.api.stmt.FeatureEffectiveStatement;
17 import org.opendaylight.yangtools.yang.model.api.stmt.FeatureStatement;
18 import org.opendaylight.yangtools.yang.model.spi.meta.AbstractDeclaredEffectiveStatement.Default;
19 import org.opendaylight.yangtools.yang.model.spi.meta.EffectiveStatementMixins.SchemaNodeMixin;
21 public class EmptyFeatureEffectiveStatement extends Default<QName, FeatureStatement>
22 implements FeatureDefinition, FeatureEffectiveStatement, SchemaNodeMixin<QName, FeatureStatement> {
23 private final @NonNull Immutable path;
24 private final int flags;
26 public EmptyFeatureEffectiveStatement(final FeatureStatement declared, final Immutable path, final int flags) {
28 this.path = requireNonNull(path);
33 public final int flags() {
38 public final @NonNull QName argument() {
44 public final Immutable pathObject() {
49 public final FeatureEffectiveStatement asEffectiveStatement() {
54 public final String toString() {
55 return getClass().getSimpleName() + "[name=" + getQName() + "]";