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.stmt.rfc6020.effective.ValueEffectiveStatementImpl;
12 import org.opendaylight.yangtools.yang.model.api.Rfc6020Mapping;
13 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
14 import org.opendaylight.yangtools.yang.model.api.stmt.ValueStatement;
15 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractDeclaredStatement;
16 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
17 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
19 public class ValueStatementImpl extends AbstractDeclaredStatement<String>
20 implements ValueStatement {
22 protected ValueStatementImpl(StmtContext<String, ValueStatement, ?> context) {
26 public static class Definition
28 AbstractStatementSupport<String, ValueStatement, EffectiveStatement<String, ValueStatement>> {
31 super(Rfc6020Mapping.VALUE);
35 public String parseArgumentValue(StmtContext<?, ?, ?> ctx, String value) {
40 public ValueStatement createDeclared(
41 StmtContext<String, ValueStatement, ?> ctx) {
42 return new ValueStatementImpl(ctx);
46 public EffectiveStatement<String, ValueStatement> createEffective(
47 StmtContext<String, ValueStatement, EffectiveStatement<String, ValueStatement>> ctx) {
48 return new ValueEffectiveStatementImpl(ctx);
54 public String getValue() {