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.stmt.rfc6020;
10 import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
11 import java.util.Collection;
12 import org.opendaylight.yangtools.yang.model.api.stmt.DataDefinitionStatement;
13 import org.opendaylight.yangtools.yang.model.api.stmt.GroupingStatement;
14 import org.opendaylight.yangtools.yang.model.api.stmt.TypedefStatement;
15 import org.opendaylight.yangtools.yang.model.api.stmt.InputStatement;
16 import org.opendaylight.yangtools.yang.model.api.Rfc6020Mapping;
17 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
18 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractDeclaredStatement;
19 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
20 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
22 public class InputStatementImpl extends AbstractDeclaredStatement<Void>
23 implements InputStatement {
25 protected InputStatementImpl(
26 StmtContext<Void, InputStatement, ?> context) {
30 public static class Definition
32 AbstractStatementSupport<Void, InputStatement, EffectiveStatement<Void, InputStatement>> {
35 super(Rfc6020Mapping.INPUT);
39 public Void parseArgumentValue(StmtContext<?, ?, ?> ctx, String value)
40 throws SourceException {
45 public InputStatement createDeclared(
46 StmtContext<Void, InputStatement, ?> ctx) {
47 return new InputStatementImpl(ctx);
51 public EffectiveStatement<Void, InputStatement> createEffective(
52 StmtContext<Void, InputStatement, EffectiveStatement<Void, InputStatement>> ctx) {
53 throw new UnsupportedOperationException();
59 public Collection<? extends TypedefStatement> getTypedefs() {
60 return allDeclared(TypedefStatement.class);
64 public Collection<? extends GroupingStatement> getGroupings() {
65 return allDeclared(GroupingStatement.class);
69 public Collection<? extends DataDefinitionStatement> getDataDefinitions() {
70 return allDeclared(DataDefinitionStatement.class);