Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/DslGrammarStorageAdapter.java')
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/DslGrammarStorageAdapter.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/DslGrammarStorageAdapter.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/DslGrammarStorageAdapter.java
new file mode 100644
index 00000000000..f2eedfa4728
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/DslGrammarStorageAdapter.java
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.ui.skynet;
+
+import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+
+/**
+ * @author Jonathan E. Jensen
+ */
+public interface DslGrammarStorageAdapter {
+
+ /**
+ * This function processes the data from the editor prior to it being stored in the data store. This works in
+ * conjunction with preProcess() to allow the presented text to be independent of the data stored.
+ *
+ * @param serializedModel
+ * @return
+ */
+ String postProcess(Artifact artifact, String serializedModel);
+
+ /**
+ * This function processes the data from the data store prior to it being viewed by the user in the editor. This
+ * works in conjunction with postProcess() to allow the presented text to be independent of the data stored.
+ *
+ * @param artifact
+ * @param storedValue
+ * @return a valid text for consumption by the editor.
+ */
+ String preProcess(Artifact artifact, String storedValue);
+
+}

Back to the top