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.AttributesContainer;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeWithValue;
15 * Leaf node with multiplicity 0...n
17 * Leaf node has a value, but no child nodes in the data tree, schema
18 * for leaf node and its value is described by
19 * {@link org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode}.
24 public interface LeafSetEntryNode<T> extends AttributesContainer, NormalizedNode<NodeWithValue, T> {
27 * Returns {@link NodeWithValue} which identifies this leaf set entry.
29 * Returned {@link NodeWithValue} contains same value as this node.
31 * <h3>Implementation notes</h3> Invocation of
32 * {@link NodeWithValue#getValue()} on returned instance of
33 * {@link NodeWithValue} must returns
34 * same value as invocation of {@link #getValue()}, such as
35 * following condition is allways met:
36 * <code>true == this.getIdentifier().getValue().equals(this.getValue())</code>
39 * @return {@link NodeWithValue} which identifies this leaf set entry.
42 NodeWithValue getIdentifier();
46 * Returns value of this leaf node
48 * <h3>Implementation notes</h3> Invocation of {@link #getValue()} must
49 * provides same value as value in {@link #getIdentifier()}.
50 * <code>true == this.getIdentifier().getValue().equals(this.getValue())</code>
52 * @return Returned value of this leaf node. Value SHOULD meet criteria