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%2FMapEntryNode.java;h=e2252063a7d51eca42f72191b6364a637a4a8631;hb=e704e6a6d1cc4db7ac1e1f53b54ec3bf51aaecc3;hp=69e9dd9bda7667d71941dd41d809f7bfa10f9046;hpb=6dea5d7a81c51f3838750215b7aa35aa7d190d86;p=yangtools.git diff --git a/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/MapEntryNode.java b/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/MapEntryNode.java index 69e9dd9bda..e2252063a7 100644 --- a/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/MapEntryNode.java +++ b/yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/MapEntryNode.java @@ -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,10 +7,29 @@ */ package org.opendaylight.yangtools.yang.data.api.schema; -import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier.NodeIdentifierWithPredicates; +import org.opendaylight.yangtools.yang.data.api.AttributesContainer; +import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates; -public interface MapEntryNode extends DataContainerNode { +/** + * + * Instance of Map entry, this node does not contains value, but child nodes. + * + */ +public interface MapEntryNode extends AttributesContainer, DataContainerNode { + /** + * + * Returns identifier of this node in parent map node + * + * Contents of identifier is defined by key ( + * {@link org.opendaylight.yangtools.yang.model.api.ListSchemaNode#getKeyDefinition()} + * ) statement in YANG schema for associated list item and child {@link LeafNode}s + * values with {@link org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier} + * as defined in the schema. + * + * @return identifier of this node in the context of parent node + */ @Override - public NodeIdentifierWithPredicates getIdentifier(); + NodeIdentifierWithPredicates getIdentifier(); + }