Cleaned up Java Binding code from YANG Tools
[mdsal.git] / binding / yang-binding / src / main / java / org / opendaylight / yangtools / yang / binding / AugmentationHolder.java
1 /*
2  * Copyright (c) 2015 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 import java.util.Map;
11
12 /**
13  *
14  * Augmentable (extensible) object which could carry additional data defined by
15  * third-party extension, without introducing conflict between various
16  * extension.
17  *
18  *
19  * @author Tony Tkacik
20  * @param <T>
21  *            Base class which should is target
22  *            for augmentations.
23  */
24 public interface AugmentationHolder<T> {
25
26     /**
27      * Returns map of all augmentations.
28      *
29      * @return map of all augmentations.
30      */
31     Map<Class<? extends Augmentation<T>>,Augmentation<T>> augmentations();
32 }