/* * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.mdsal.binding2.generator.util; import static org.opendaylight.mdsal.binding2.generator.util.Types.parameterizedTypeFor; import static org.opendaylight.mdsal.binding2.generator.util.Types.typeForClass; import javax.management.NotificationListener; import org.opendaylight.mdsal.binding2.model.api.ConcreteType; import org.opendaylight.mdsal.binding2.model.api.ParameterizedType; import org.opendaylight.mdsal.binding2.model.api.Type; import org.opendaylight.mdsal.binding2.spec.Augmentable; import org.opendaylight.mdsal.binding2.spec.Augmentation; import org.opendaylight.mdsal.binding2.spec.IdentifiableItem; import org.opendaylight.mdsal.binding2.spec.InstanceIdentifier; import org.opendaylight.mdsal.binding2.spec.Notification; import org.opendaylight.mdsal.binding2.spec.TreeChildNode; import org.opendaylight.mdsal.binding2.spec.TreeNode; import org.opendaylight.mdsal.binding2.spec.TreeRoot; import org.opendaylight.yangtools.concepts.Identifier; public final class BindingTypes { public static final ConcreteType AUGMENTABLE = typeForClass(Augmentable.class); public static final ConcreteType AUGMENTATION = typeForClass(Augmentation.class); public static final ConcreteType TREE_NODE = typeForClass(TreeNode.class); public static final ConcreteType TREE_ROOT = typeForClass(TreeRoot.class); public static final ConcreteType IDENTIFIABLE_ITEM = typeForClass(IdentifiableItem.class); public static final ConcreteType IDENTIFIER = typeForClass(Identifier.class); public static final ConcreteType INSTANCE_IDENTIFIER = typeForClass(InstanceIdentifier.class); public static final ConcreteType NOTIFICATION = typeForClass(Notification.class); public static final ConcreteType NOTIFICATION_LISTENER = typeForClass(NotificationListener.class); private static final ConcreteType TREE_CHILD_NODE = typeForClass(TreeChildNode.class); private BindingTypes() { throw new UnsupportedOperationException("Utility class"); } public static ParameterizedType augmentable(Type t) { return parameterizedTypeFor(AUGMENTABLE, t); } public static ParameterizedType treeChildNode(Type t) { return parameterizedTypeFor(TREE_CHILD_NODE, t); } }