2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.binding;
11 * Augmentable (extensible) object which could carry additional data defined by
12 * third-party extension, without introducing conflict between various
15 * This interface uses extended version of ExtensibleInterface pattern which
16 * also adds marker interface for augmentations (extensions) -
19 * @author Tony Tkacik <ttkacik@cisco.com>
21 * Base class which should implements this interface and is target
24 public interface Augmentable<T> {
27 * Returns instance of augmentation.
29 * @param augmentationType
30 * Type of augmentation to be returned.
31 * @return instance of augmentation.
33 <E extends Augmentation<T>> E getAugmentation(Class<E> augmentationType);