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;
11 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
12 import org.opendaylight.yangtools.yang.model.api.stmt.NamespaceStatement;
13 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractDeclaredStatement;
14 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
15 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
17 public class NamespaceStatementImpl extends AbstractDeclaredStatement<URI> implements NamespaceStatement {
19 public static class Definition extends AbstractStatementSupport<URI,NamespaceStatement,EffectiveStatement<URI,NamespaceStatement>> {
22 super(org.opendaylight.yangtools.yang.model.api.Rfc6020Mapping.NAMESPACE);
26 public URI parseArgumentValue(StmtContext<?, ?,?> ctx, String value) {
27 return URI.create(value);
31 public NamespaceStatement createDeclared(StmtContext<URI, NamespaceStatement,?> ctx) {
32 return new NamespaceStatementImpl(ctx);
36 public EffectiveStatement<URI,NamespaceStatement> createEffective(StmtContext<URI, NamespaceStatement,EffectiveStatement<URI,NamespaceStatement>> ctx) {
37 throw new UnsupportedOperationException();
42 NamespaceStatementImpl(StmtContext<URI, NamespaceStatement,?> context) {