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;
10 import org.eclipse.jdt.annotation.Nullable;
13 * Augmentable (extensible) object which could carry additional data defined by a third-party extension, without
14 * introducing conflict between various extension.
17 * This interface uses extended version of ExtensibleInterface pattern which also adds marker interface for
18 * augmentations (extensions) - {@link Augmentable}.
21 * Base class which should implements this interface and is target
25 public interface Augmentable<T> {
27 * Returns instance of augmentation.
29 * @param augmentationType Type of augmentation to be returned.
30 * @param <A> Type capture for augmentation type
31 * @return instance of augmentation.
33 <A extends Augmentation<T>> @Nullable A augmentation(Class<A> augmentationType);