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.UnrecognizedStatement;
19 * Public definition for statements declared by extensions. This class is instantiated for every extension that is seen
20 * to be declared in a model.
23 final class ModelDefinedStatementDefinition extends AbstractStatementDefinition {
24 ModelDefinedStatementDefinition(final QName statementName) {
28 ModelDefinedStatementDefinition(final QName statementName, final @Nullable QName argumentName,
29 final boolean yinElement) {
30 super(statementName, yinElement, argumentName);
34 public Class<? extends DeclaredStatement<?>> getDeclaredRepresentationClass() {
35 return UnrecognizedStatement.class;
39 public Class<? extends EffectiveStatement<?, ?>> getEffectiveRepresentationClass() {
40 return UnrecognizedEffectiveStatement.class;