Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/serialization/ISerializationRegistry.java')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/serialization/ISerializationRegistry.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/serialization/ISerializationRegistry.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/serialization/ISerializationRegistry.java
new file mode 100644
index 00000000000..bfe26dc13dd
--- /dev/null
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core/src/org/eclipse/papyrus/emf/facet/util/emf/core/serialization/ISerializationRegistry.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Mia-Software.
+ * 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:
+ * Nicolas Bros (Mia-Software) - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.facet.util.emf.core.serialization;
+
+import java.util.List;
+
+import org.eclipse.emf.facet.util.emf.core.internal.serialization.SerializationRegistry;
+
+/** The registry of {@link ISerializer}s per type. */
+public interface ISerializationRegistry {
+ public static ISerializationRegistry INSTANCE = new SerializationRegistry();
+
+ /** Get all the serializers . */
+ List<ISerializer<?>> getSerializers();
+
+ /**
+ * @return the serializer for the given type, or <code>null</code> if none has been registered.
+ * Also returns serializers for super-types of <code>type</code>.
+ */
+ ISerializer<?> getSerializerFor(Class<?> type);
+
+ /**
+ * @return the serializer for the given type qualified name, or <code>null</code> if none has
+ * been registered. Does not return serializers for super-types of <code>type</code>.
+ */
+ ISerializer<?> getSerializerFor(String type);
+}

Back to the top