/* * Copyright (c) 2018 Pantheon Technologies, s.r.o. 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.mdsal.binding.runtime.api; import com.google.common.annotations.Beta; import com.google.common.collect.Multimap; import java.util.Collection; import java.util.Optional; import org.opendaylight.mdsal.binding.model.api.Type; import org.opendaylight.yangtools.concepts.Immutable; import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode; import org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus; import org.opendaylight.yangtools.yang.model.api.EffectiveModelContextProvider; /** * The result of BindingGenerator run. Contains mapping between Types and SchemaNodes. */ @Beta public interface BindingRuntimeTypes extends EffectiveModelContextProvider, Immutable { Optional findAugmentation(Type type); Optional findIdentity(QName qname); Optional findSchema(Type type); Optional findType(WithStatus schema); Optional findOriginalAugmentationType(AugmentationSchemaNode augment); Multimap getChoiceToCases(); Collection findCases(Type choiceType); }