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.parser.rfc7950.stmt.identity;
10 import static java.util.Objects.requireNonNull;
12 import com.google.common.base.MoreObjects;
13 import org.eclipse.jdt.annotation.NonNull;
14 import org.opendaylight.yangtools.yang.common.QName;
15 import org.opendaylight.yangtools.yang.model.api.IdentitySchemaNode;
16 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
17 import org.opendaylight.yangtools.yang.model.api.stmt.IdentityEffectiveStatement;
18 import org.opendaylight.yangtools.yang.model.api.stmt.IdentityStatement;
19 import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractDeclaredEffectiveStatement.DefaultArgument;
20 import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.EffectiveStatementMixins.SchemaNodeMixin;
22 abstract class AbstractIdentityEffectiveStatement extends DefaultArgument<QName, IdentityStatement>
23 implements IdentityEffectiveStatement, IdentitySchemaNode, SchemaNodeMixin<QName, IdentityStatement> {
24 private final @NonNull SchemaPath path;
26 AbstractIdentityEffectiveStatement(final IdentityStatement declared, final SchemaPath path) {
28 this.path = requireNonNull(path);
33 public final SchemaPath getPath() {
38 public final IdentityEffectiveStatement asEffectiveStatement() {
43 public final String toString() {
44 return MoreObjects.toStringHelper(this).add("qname", getQName()).add("path", path).toString();