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

org.emfjson.jackson.handlers.URIHandler Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
/*
 * Copyright (c) 2015 Guillaume Hillairet.
 * 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:
 *     Guillaume Hillairet - initial API and implementation
 *
 */
package org.emfjson.jackson.handlers;

import org.eclipse.emf.common.util.URI;

/**
 * URIHandler is used during serialization/deserialization
 * of external references.
 */
public interface URIHandler {

	/**
	 * Returns the URI {@link URI#resolve(URI) resolved} against the base URI.
	 *
	 * @param uri the URI to resolve.
	 * @return the URI resolved against the base URI.
	 * @see URI#resolve(URI)
	 */
	URI resolve(URI baseURI, URI uri);

	/**
	 * Returns the URI {@link URI#deresolve(URI) deresolved} against the base URI.
	 *
	 * @param uri the URI to resolve.
	 * @return the URI resolved against the base URI.
	 * @see URI#deresolve(URI)
	 */
	URI deresolve(URI baseURI, URI uri);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy