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

eu.optique.api.mapping.ManageResource Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
/*******************************************************************************
 * Copyright 2013, the Optique Consortium
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * This first version of the R2RML API was developed jointly at the University of Oslo, 
 * the University of Bolzano, La Sapienza University of Rome, and fluid Operations AG, 
 * as part of the Optique project, www.optique-project.eu
 ******************************************************************************/
package eu.optique.api.mapping;

/**
 * Handles resources that is needed by the serialization.
 * 
 * @author Marius Strandhaug
 */
public interface ManageResource {

	/**
	 * Sets the resource used to serialize an R2RML component. The res parameter
	 * must be an instance of the library's resource class.
	 * 
	 * @param res
	 *            The resource to set.
	 */
	public void setResource(Object res);

	/**
	 * Get the resource used to serialize an R2RML component.
	 * 
	 * @param resourceClass
	 *            Must be equal to (or a superclass of) the library's resource
	 *            class.
	 * @return The resource set by setResource(Object res).
	 */
	public  R getResource(Class resourceClass);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy