All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.yangtools.rfc8040.model.api.YangDataSchemaNode Maven / Gradle / Ivy

There is a newer version: 14.0.4
Show newest version
/*
 * Copyright (c) 2017 Pantheon Technologies, s.r.o. 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.rfc8040.model.api;

import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.model.api.ContainerLike;
import org.opendaylight.yangtools.yang.model.api.ContainerLikeCompat;
import org.opendaylight.yangtools.yang.model.api.DataNodeContainer;
import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;

/**
 * Represents 'yang-data' extension statement defined in
 * RFC8040. This statement must appear as a top-level
 * statement, otherwise it is ignored and does not appear in the final schema context.
 */
public interface YangDataSchemaNode extends UnknownSchemaNode, DataNodeContainer {
    @Override
    YangDataEffectiveStatement asEffectiveStatement();

    /**
     * Return a {@link ContainerLike} backed by this definition's {@link #getChildNodes()}.
     *
     * @return A compatibility {@link ContainerLike}
     */
    default @NonNull ContainerLikeCompat toContainerLike() {
        return new YangDataAsContainer(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy