d89fe68ae8825f79233ea5de38a436d00407bff0
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / stmt / AnydataStatement.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 java.util.Collection;
13 import javax.annotation.Nonnull;
14 import javax.annotation.Nullable;
15
16 /**
17  * The "anydata" statement defines an interior node in the schema tree.
18  * It takes one argument, which is an identifier, followed by a block of
19  * substatements that holds detailed anydata information.
20  *
21  * The "anydata" statement is used to represent an unknown set of nodes
22  * that can be modeled with YANG, except anyxml, but for which the data
23  * model is not known at module design time.  It is possible, though not
24  * required, for the data model for anydata content to become known
25  * through protocol signaling or other means that are outside the scope
26  * of this document.
27  */
28 @Beta
29 public interface AnydataStatement extends DataDefinitionStatement {
30
31     @Nonnull
32     Collection<? extends MustStatement> getMusts();
33
34     @Nullable
35     ConfigStatement getConfig();
36
37     @Nullable MandatoryStatement getMandatory();
38 }