All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.ocl.util.Adaptable Maven / Gradle / Ivy

/**
 * 
 *
 * Copyright (c) 2007 IBM Corporation 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
 *
 * Contributors:
 *   IBM - Initial API and implementation
 *
 * 
 *
 * $Id: Adaptable.java,v 1.1 2007/10/11 23:04:53 cdamus Exp $
 */

package org.eclipse.ocl.util;

import org.eclipse.ocl.Environment;

/**
 * Interface implemented by {@link Environment}s that are adaptable to
 * optional interfaces that can be considered as extensions to the
 * environment API.
 * 
 * @author Christian W. Damus (cdamus)
 * 
 * @since 1.2
 */
public interface Adaptable {
	/**
	 * Obtains an adapter for the specified interface type.
	 * 
	 * @param  the requested adapter interface
	 * 
	 * @param adapterType the requested adapter interface
	 * @return an instance of the requested interface, or null
	 *     if this environment does not adapt to it
	 */
	 T getAdapter(Class adapterType);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy