2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.model.api;
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}.
14 * @author Robert Varga
16 public interface TypedDataSchemaNode extends DataSchemaNode, TypeAware {
18 * Returns type of the instance which implements <code>DataSchemaNode</code>.
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
25 TypeDefinition<? extends TypeDefinition<?>> getType();