/*
- * 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,
*/
package org.opendaylight.yangtools.yang.data.api.schema;
-import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier.PathArgument;
-
-import com.google.common.base.Optional;
-
-public interface DataContainerNode<K extends PathArgument> extends //
- NormalizedNodeContainer<K, PathArgument, DataContainerChild<? extends PathArgument, ?>> {
-
- @Override
- public K getIdentifier();
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
+/**
+ * Abstract node which does not have value but contains valid {@link DataContainerChild} nodes. Schema of this node is
+ * described by instance of {@link org.opendaylight.yangtools.yang.model.api.DataNodeContainer}.
+ *
+ * <p>
+ * <b>NOTE:</b>
+ * All implementations of this interface are assumed to be {@link OrderingAware.System}, i.e. order-independent.
+ *
+ * <h2>Implementation notes</h2>
+ * This interface should not be implemented directly, but rather implementing one of it's subclasses
+ * <ul>
+ * <li>{@link AugmentationNode}</li>
+ * <li>{@link ChoiceNode}</li>
+ * <li>{@link ContainerNode}</li>
+ * <li>{@link MapEntryNode} and its specializations</li>
+ * <li>{@link UnkeyedListEntryNode}</li>
+ * </ul>
+ *
+ * @param <K> {@link PathArgument} which identifies this instance {@link DataContainerNode}
+ */
+public interface DataContainerNode<K extends PathArgument>
+ extends DistinctNodeContainer<K, PathArgument, DataContainerChild>, OrderingAware.System {
@Override
- public Iterable<DataContainerChild<?, ?>> getValue();
+ int hashCode();
@Override
- public Optional<DataContainerChild<?, ?>> getChild(PathArgument child);
-
+ boolean equals(Object obj);
}