2 * Copyright (c) 2016 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.thirdparty.plugin;
10 import com.google.common.collect.ImmutableList;
11 import org.opendaylight.yangtools.yang.common.Empty;
12 import org.opendaylight.yangtools.yang.common.QName;
13 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
14 import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.UnknownEffectiveStatementBase;
15 import org.opendaylight.yangtools.yang.parser.spi.meta.EffectiveStmtCtx.Current;
17 final class ThirdPartyExtensionEffectiveStatementImpl
18 extends UnknownEffectiveStatementBase<String, ThirdPartyExtensionStatement>
19 implements ThirdPartyExtensionEffectiveStatement {
20 private final String valueFromNamespace;
22 ThirdPartyExtensionEffectiveStatementImpl(final Current<String, ThirdPartyExtensionStatement> stmt,
23 final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
24 super(stmt, substatements);
25 valueFromNamespace = stmt.getFromNamespace(ThirdPartyNamespace.class, Empty.getInstance());
29 public String getValueFromNamespace() {
30 return valueFromNamespace;
34 public QName getQName() {
39 public ThirdPartyExtensionEffectiveStatement asEffectiveStatement() {