2 * Copyright (c) 2014 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.data.api.schema;
10 import javax.annotation.Nonnull;
11 import org.opendaylight.yangtools.yang.data.api.AttributesContainer;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
15 * Leaf node with multiplicity 0..1.
18 * Leaf node has a value, but no child nodes in the data tree, schema
19 * for leaf node and its value is described by {@link org.opendaylight.yangtools.yang.model.api.LeafSchemaNode}.
21 * @param <T> Value type
23 public interface LeafNode<T> extends AttributesContainer, DataContainerChild<NodeIdentifier, T>,
24 ValueNode<NodeIdentifier, T> {
26 * Returns value of this leaf node.
28 * @return Returned value of this leaf node. Value SHOULD meet criteria defined by schema.
31 @Nonnull T getValue();