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.extension;
10 import org.eclipse.jdt.annotation.NonNullByDefault;
11 import org.eclipse.jdt.annotation.Nullable;
12 import org.opendaylight.yangtools.yang.common.QName;
13 import org.opendaylight.yangtools.yang.model.api.meta.AbstractStatementDefinition;
14 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
15 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
16 import org.opendaylight.yangtools.yang.model.api.stmt.UnrecognizedEffectiveStatement;
17 import org.opendaylight.yangtools.yang.model.api.stmt.UnrecognizedStatement;
20 * Public definition for statements declared by extensions. This class is instantiated for every extension that is seen
21 * to be declared in a model.
24 final class ModelDefinedStatementDefinition extends AbstractStatementDefinition {
25 ModelDefinedStatementDefinition(final QName statementName) {
29 ModelDefinedStatementDefinition(final QName statementName, final @Nullable QName argumentName,
30 final boolean yinElement) {
31 super(statementName, yinElement, argumentName);
35 public Class<? extends DeclaredStatement<?>> getDeclaredRepresentationClass() {
36 return UnrecognizedStatement.class;
40 public Class<? extends EffectiveStatement<?, ?>> getEffectiveRepresentationClass() {
41 return UnrecognizedEffectiveStatement.class;