blob: 8be8bbe99741b11c9d64570e589b1de3e6dab965 [file] [log] [blame]
/*
* Copyright 2016-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.onosproject.yang.model;
/**
* Abstraction of an entity which identifies a uniquely branching leaf
* corresponding to a multi instance leaf schema.
*/
public interface MultiInstanceLeafKey extends NodeKey {
/**
* Returns value of node, this is only valid for multi-instance leaf, node.
*
* @return value maintained in the node
*/
Object value();
/**
* Returns value as string, for usage in serializers.
*
* @return string representation of value
*/
String asString();
}