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 org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeWithValue;
13 * Leaf node with multiplicity 0...n. Leaf node has a value, but no child nodes in the data tree, schema for leaf node
14 * and its value is described by {@link org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode}.
16 * @param <T> Value type
18 public interface LeafSetEntryNode<T> extends NormalizedNode<NodeWithValue, T>, ValueNode<NodeWithValue, T> {
20 * Returns {@link NodeWithValue} which identifies this leaf set entry. Returned {@link NodeWithValue} contains same
23 * <b>Implementation note</b>
24 * Invocation of {@link NodeWithValue#getValue()} on returned instance of {@link NodeWithValue} must return the
25 * same value as invocation of {@link #getValue()}, such as following condition is always met:
26 * {@code true == this.getIdentifier().getValue().equals(this.getValue())}.
28 * @return {@link NodeWithValue} which identifies this leaf set entry.
31 NodeWithValue getIdentifier();