blob: abf5c8e117cf99b8f93b0a96bb1727faaa0079ee [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 Mia-Software and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Nicolas Bros (Mia-Software) - initial API and implementation
*******************************************************************************/
package org.eclipse.modisco.facet.util.emf.core.internal.serialization.serializers;
import org.eclipse.emf.common.util.URI;
import org.eclipse.modisco.facet.util.emf.core.serialization.ISerializer;
public class EMFURISerializer implements ISerializer<URI> {
public EMFURISerializer() {
//
}
public Class<URI> getType() {
return URI.class;
}
public String serialize(final URI value) {
return value.toString();
}
public URI deserialize(final String serializedValue) {
return URI.createURI(serializedValue);
}
}