Remove NormalizedNode.getNodeType()
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / LeafSetEntryNode.java
index 663eb64da1dc7b31b8c9c890f22484813b23e5ea..86debe7c0cbb5b49eb0dece200bf8fee73157ecd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -7,12 +7,24 @@
  */
 package org.opendaylight.yangtools.yang.data.api.schema;
 
-import org.opendaylight.yangtools.yang.data.api.AttributesContainer;
-import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier.NodeWithValue;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeWithValue;
 
-public interface LeafSetEntryNode<T> extends
-        AttributesContainer,
-        NormalizedNode<NodeWithValue, T> {
+/**
+ * Leaf node with multiplicity 0...n. Leaf node has a value, but no child nodes in the data tree, schema for leaf node
+ * and its value is described by {@link org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode}.
+ *
+ * @param <T> Value type
+ */
+public interface LeafSetEntryNode<T> extends ValueNode<T> {
+    /**
+     * {@inheritDoc}
+     *
+     * <p>
+     * <b>Implementation note</b>
+     * Invocation of {@link NodeWithValue#getValue()} on returned instance of {@link NodeWithValue} must return the
+     * same value as invocation of {@code #body()}, such as following condition is always met:
+     * {@code true == this.getIdentifier().getValue().equals(this.body())}.
+     */
     @Override
-    NodeWithValue getIdentifier();
+    NodeWithValue<T> getIdentifier();
 }