b32c7528581899d664f63e5d67e9266527fe4cc7
[yangtools.git] / model / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / ContainerSchemaNode.java
1 /*
2  * Copyright (c) 2013 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.model.api;
9
10 import org.opendaylight.yangtools.yang.model.api.stmt.ContainerEffectiveStatement;
11
12 /**
13  * The ContainerSchemaNode is used to define an interior data node in the schema tree. There are two styles of
14  * containers, those that exist only for organizing the hierarchy of data nodes, and those whose presence in the
15  * configuration has an explicit meaning.
16  */
17 public interface ContainerSchemaNode extends ContainerLike, EffectiveStatementEquivalent<ContainerEffectiveStatement> {
18     /**
19      * Returns true if this container is marked as presence.
20      *
21      * @return true, if presence of this container has an explicit meaning,
22      *         false otherwise
23      */
24     boolean isPresenceContainer();
25 }