Populate data/ hierarchy
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / TypedDataSchemaNode.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 package org.opendaylight.yangtools.yang.model.api;
9
10 /**
11  * A {@link DataSchemaNode} which holds values of the same type. This can be either a single value, like
12  * in a {@link LeafSchemaNode} or multiple values, like a {@link LeafListSchemaNode}.
13  *
14  * @author Robert Varga
15  */
16 public interface TypedDataSchemaNode extends DataSchemaNode, TypeAware {
17     /**
18      * Returns type of the instance which implements <code>DataSchemaNode</code>.
19      *
20      * @return type definition of leaf or leaf-list schema node which represents the
21      *         value of the argument of the YANG <code>type</code> substatement
22      *         of the <code>leaf</code> or <code>leaf-list</code> statement
23      */
24     @Override
25     TypeDefinition<? extends TypeDefinition<?>> getType();
26 }