YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / require_instance / RequireInstanceStatementImpl.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.require_instance;
9
10 import org.opendaylight.yangtools.yang.model.api.stmt.RequireInstanceStatement;
11 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractDeclaredStatement;
12 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
13
14 final class RequireInstanceStatementImpl extends AbstractDeclaredStatement<Boolean>
15         implements RequireInstanceStatement {
16     RequireInstanceStatementImpl(final StmtContext<Boolean, RequireInstanceStatement, ?> context) {
17         super(context);
18     }
19
20     @Override
21     public boolean getValue() {
22         return argument().booleanValue();
23     }
24 }