Simplify builder's addAugmentation() method
[mdsal.git] / binding / yang-binding / src / main / java / org / opendaylight / yangtools / yang / binding / Augmentation.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. 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.yangtools.yang.binding;
9
10 /**
11  * Augmentation (extension) of other interface. This interface uniquely bounds Augmentation to generated  interface.
12  *
13  * <p>
14  * All interfaces generated from YANG Augmentation statement must implement this interface with parameter <code>P</code>
15  * which uniquely points to it's target class.
16  *
17  * @param <T> Class to which this implementation is extension.
18  */
19 public interface Augmentation<T> extends DataObject {
20     @Override
21     Class<? extends Augmentation<T>> implementedInterface();
22 }