Promote RuntimeType interface hierarchy
[mdsal.git] / binding / mdsal-binding-runtime-api / src / main / java / org / opendaylight / mdsal / binding / runtime / api / AugmentableRuntimeType.java
1 /*
2  * Copyright (c) 2022 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.mdsal.binding.runtime.api;
9
10 import java.util.List;
11 import org.eclipse.jdt.annotation.NonNull;
12
13 /**
14  * A {@link CompositeRuntimeType} which is also can be targeted by {@code augment} statements.
15  */
16 public interface AugmentableRuntimeType extends CompositeRuntimeType {
17     /**
18      * Return the {@link AugmentRuntimeType}s extending this type, matching the underlying {@link #statement()}.
19      *
20      * @return {@link AugmentRuntimeType}s extending this type.
21      */
22     @NonNull List<AugmentRuntimeType> augments();
23 }