Track schema tree generator linkage
[mdsal.git] / binding / mdsal-binding-generator / src / main / java / org / opendaylight / mdsal / binding / generator / impl / tree / SchemaTreeParent.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.generator.impl.tree;
9
10 import java.util.List;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
13
14 /**
15  * A parent containing a number of {@link SchemaTreeChild} objects.
16  *
17  * @param <S> Concrete {@link EffectiveStatement} type
18  */
19 // FIXME: S extends SchemaTreeAwareStatement ... once AugmentEffectiveStatement implements that
20 public interface SchemaTreeParent<S extends EffectiveStatement<?, ?>> {
21     /*
22      * Immutable view of children of this object along the {@code schema tree} child axis.
23      *
24      * @return Immutable view of this objects children along the {@code schema tree} child axis.
25      */
26     @NonNull List<SchemaTreeChild<?, ?>> schemaTreeChildren();
27 }