Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'MS_0.6.0_20090114/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/IVariantData.java')
-rw-r--r--MS_0.6.0_20090114/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/IVariantData.java61
1 files changed, 61 insertions, 0 deletions
diff --git a/MS_0.6.0_20090114/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/IVariantData.java b/MS_0.6.0_20090114/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/IVariantData.java
new file mode 100644
index 00000000000..84cda2ca355
--- /dev/null
+++ b/MS_0.6.0_20090114/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/IVariantData.java
@@ -0,0 +1,61 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 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.jdk.core.type;
+
+import java.io.InputStream;
+import java.util.Date;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public interface IVariantData {
+
+ public String get(String key);
+
+ public boolean isEmpty(String key);
+
+ public String[] getArray(String key);
+
+ public boolean getBoolean(String key);
+
+ public double getDouble(String key) throws NumberFormatException;
+
+ public float getFloat(String key) throws NumberFormatException;
+
+ public int getInt(String key) throws NumberFormatException;
+
+ public long getLong(String key) throws NumberFormatException;
+
+ public Date getDate(String key) throws IllegalArgumentException;
+
+ public String getStreamAsString(String key) throws Exception;
+
+ public InputStream getStream(String key) throws IllegalArgumentException;
+
+ public void put(String key, String[] value);
+
+ public void put(String key, double value);
+
+ public void put(String key, float value);
+
+ public void put(String key, int value);
+
+ public void put(String key, long value);
+
+ public void put(String key, String value);
+
+ public void put(String key, boolean value);
+
+ public void put(String key, Date date);
+
+ public void put(String key, byte[] bytes);
+}

Back to the top