* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.yangtools.yang.parser.stmt.rfc7950;
+package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.choice;
import com.google.common.annotations.Beta;
import org.opendaylight.yangtools.yang.model.api.YangStmtMapping;
+import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.case_.CaseStatementRFC7950Support;
import org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport;
import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
-import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.ChoiceStatementImpl;
/**
* Class providing necessary support for processing YANG 1.1 Choice statement.
*/
@Beta
-public final class ChoiceStatementRfc7950Support extends ChoiceStatementImpl.Definition {
+public final class ChoiceStatementRFC7950Support extends AbstractChoiceStatementSupport {
private static final SubstatementValidator SUBSTATEMENT_VALIDATOR = SubstatementValidator.builder(YangStmtMapping
.CHOICE)
.addAny(YangStmtMapping.ANYDATA)
.addOptional(YangStmtMapping.WHEN)
.build();
- private static final StatementSupport<?, ?, ?> IMPLICIT_CASE = new CaseStatementRfc7950Support();
+ // FIXME: share instance
+ private static final StatementSupport<?, ?, ?> IMPLICIT_CASE = new CaseStatementRFC7950Support();
@Override
- protected StatementSupport<?, ?, ?> implictCase() {
+ StatementSupport<?, ?, ?> implictCase() {
return IMPLICIT_CASE;
}