Populate data/ hierarchy
[yangtools.git] / model / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / stmt / ModifierStatement.java
1 /*
2  * Copyright (c) 2016 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
9 package org.opendaylight.yangtools.yang.model.api.stmt;
10
11 import com.google.common.annotations.Beta;
12 import org.opendaylight.yangtools.yang.model.api.YangStmtMapping;
13 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
14 import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
15 import org.opendaylight.yangtools.yang.model.api.type.ModifierKind;
16
17 /**
18  * Represents YANG modifier statement.
19  *
20  * <p>
21  * The "modifier" statement, which is an optional substatement to the "pattern" statement, takes as an argument
22  * the string "invert-match". If a pattern has the "invert-match" modifier present, the type is restricted to values
23  * that do not match the pattern.
24  */
25 @Beta
26 public interface ModifierStatement extends DeclaredStatement<ModifierKind> {
27     @Override
28     default StatementDefinition statementDefinition() {
29         return YangStmtMapping.MODIFIER;
30     }
31 }