X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-data-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fdata%2Fapi%2Fschema%2FDataContainerNode.java;h=a9e90d566e1c1245c6aa8a503ad9897d813a7587;hb=0eb60011b52e4e56c62b47a36eb334f2c3b3ad6a;hp=ce73d1c93e49052863bb10784cf1501007b07686;hpb=e1a552dd80582386a8fc46a2a28060b45a88d3c0;p=yangtools.git diff --git a/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/DataContainerNode.java b/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/DataContainerNode.java index ce73d1c93e..a9e90d566e 100644 --- a/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/DataContainerNode.java +++ b/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/DataContainerNode.java @@ -1,26 +1,46 @@ /* - * 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, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.data.api.schema; -import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier.PathArgument; - -import com.google.common.base.Optional; +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}. + * + *

Implementation notes

+ * This interface should not be implemented directly, but rather implementing one of it's subclasses + * + * + * @param {@link PathArgument} which identifies instance of {@link DataContainerNode} + */ public interface DataContainerNode extends // NormalizedNodeContainer> { + /** + * Returns iteration of all child nodes + * + * Order of returned child nodes may be defined by subinterfaces. + * + * Implementation Notes: + *

+ * All nodes returned in this iterable, MUST also be accessible via + * {@link #getChild(PathArgument)} using their associated identifier. + * + * @return Iteration of all child nodes + */ @Override - public K getIdentifier(); - - @Override - public Iterable> getValue(); - - @Override - public Optional> getChild(PathArgument child); - + Iterable> getValue(); }