diff options
author | Tobias Schwarz | 2012-02-28 10:10:22 +0000 |
---|---|---|
committer | Uwe Stieber | 2012-02-28 10:10:22 +0000 |
commit | 81c55237f6fc3a63726fbae7617eb0a28043bedb (patch) | |
tree | 095789911ae3bda7c5b9749891ab498f7354d58e /target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org | |
parent | f7516341dac4f8d0dbbef730c9d633a4287ce1b3 (diff) | |
download | org.eclipse.tcf-81c55237f6fc3a63726fbae7617eb0a28043bedb.tar.gz org.eclipse.tcf-81c55237f6fc3a63726fbae7617eb0a28043bedb.tar.xz org.eclipse.tcf-81c55237f6fc3a63726fbae7617eb0a28043bedb.zip |
Target Explorer: Cherry-pick: REWORK stepper framework and ADD minimal launch stepping
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/interfaces/IPersistable2.java | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/interfaces/IPersistable2.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/interfaces/IPersistable2.java new file mode 100644 index 000000000..5667b1982 --- /dev/null +++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.persistence/src/org/eclipse/tcf/te/runtime/persistence/interfaces/IPersistable2.java @@ -0,0 +1,53 @@ +/*******************************************************************************
+ * Copyright (c) 2011 Wind River Systems, Inc. and others. 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:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.persistence.interfaces;
+
+import java.io.IOException;
+
+/**
+ * Interface to be implemented by string persistable elements.
+ */
+public interface IPersistable2 extends IPersistable {
+
+ /**
+ * Returns the class name of the encoded context.
+ * <p>
+ * The class name is used to load the correct class to decode the persistable representation.
+ *
+ * @param data The data object. Must not be <code>null</code>.
+ * @return The class name of the encoded context.
+ */
+ public String getEncodedClassName(Object data);
+
+
+ /**
+ * Exports the given data object to an external representation.
+ * <p>
+ * As a general guide line, it is expected that the external representation contains only base
+ * Java objects like maps, lists and Strings. Details about the valid object types can be taken
+ * from the referenced persistence delegate.
+ *
+ * @param data The data object. Must not be <code>null</code>.
+ * @return The external representation of the given data object.
+ *
+ * @throws IOException - if the operation fails.
+ */
+ public String exportStringFrom(Object data) throws IOException;
+
+ /**
+ * Imports the given external representation.
+ *
+ * @param external The external representation. Must not be <code>null</code>.
+ * @return The data object or <code>null</code>.
+ *
+ * @throws IOException - if the operation fails.
+ */
+ public Object importFrom(String external) throws IOException;
+}
|