X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.message%2Fsrc%2Forg%2Fsimantics%2Fmessage%2FIReferenceSerializer.java;h=af02e58a23f6188a58b83b52b4ac101a992728c2;hb=ff1337ff96700fb157ec789cbef88b8f40e03798;hp=4239a60252475cbe724989ad226b6c3594e7949c;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.message/src/org/simantics/message/IReferenceSerializer.java b/bundles/org.simantics.message/src/org/simantics/message/IReferenceSerializer.java index 4239a6025..af02e58a2 100644 --- a/bundles/org.simantics.message/src/org/simantics/message/IReferenceSerializer.java +++ b/bundles/org.simantics.message/src/org/simantics/message/IReferenceSerializer.java @@ -1,41 +1,41 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.message; - -import java.net.URI; - -/** - * @author Tuukka Lehtonen - */ -public interface IReferenceSerializer { - - /** - * @param o - * @return - */ - boolean handles(Object o); - - /** - * @param o - * @return - * @throws ReferenceSerializationException - */ - URI serialize(Object o) throws ReferenceSerializationException; - - /** - * @param s - * @return - * @throws ReferenceSerializationException - */ - Object deserialize(URI data) throws ReferenceSerializationException; - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.message; + +import java.net.URI; + +/** + * @author Tuukka Lehtonen + */ +public interface IReferenceSerializer { + + /** + * @param o + * @return + */ + boolean handles(Object o); + + /** + * @param o + * @return + * @throws ReferenceSerializationException + */ + URI serialize(Object o) throws ReferenceSerializationException; + + /** + * @param s + * @return + * @throws ReferenceSerializationException + */ + Object deserialize(URI data) throws ReferenceSerializationException; + +}