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.NamespaceEffectiveStatementImpl;
13 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
14 import org.opendaylight.yangtools.yang.model.api.stmt.NamespaceStatement;
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 NamespaceStatementImpl extends AbstractDeclaredStatement<URI> implements NamespaceStatement {
21 public static class Definition extends AbstractStatementSupport<URI,NamespaceStatement,EffectiveStatement<URI,NamespaceStatement>> {
24 super(org.opendaylight.yangtools.yang.model.api.Rfc6020Mapping.NAMESPACE);
28 public URI parseArgumentValue(StmtContext<?, ?,?> ctx, String value) {
29 return URI.create(value);
33 public NamespaceStatement createDeclared(StmtContext<URI, NamespaceStatement,?> ctx) {
34 return new NamespaceStatementImpl(ctx);
38 public EffectiveStatement<URI,NamespaceStatement> createEffective(StmtContext<URI, NamespaceStatement,EffectiveStatement<URI,NamespaceStatement>> ctx) {
39 return new NamespaceEffectiveStatementImpl(ctx);
44 NamespaceStatementImpl(StmtContext<URI, NamespaceStatement,?> context) {