summaryrefslogtreecommitdiff
path: root/org/omg/DynamicAny/DynFixedOperations.java
diff options
context:
space:
mode:
authorAudrius Meskauskas <audriusa@Bioinformatics.org>2005-07-28 14:38:11 +0000
committerAudrius Meskauskas <audriusa@Bioinformatics.org>2005-07-28 14:38:11 +0000
commitb985ebfd8f689ac1ae1e47cc3df2b0823a70a87d (patch)
tree45d113f294a5af98a29a2fa241a232828c91912d /org/omg/DynamicAny/DynFixedOperations.java
parent6c58c834385371efa4263596bb95509adb714d9b (diff)
downloadclasspath-b985ebfd8f689ac1ae1e47cc3df2b0823a70a87d.tar.gz
2005-07-27 Audrius Meskauskas <AudriusA@Bioinformatics.org>
* org/omg/DynamicAny/DynUnion.java, org/omg/DynamicAny/DynUnionOperations.java, org/omg/DynamicAny/NameDynAnyPair.java, org/omg/DynamicAny/NameValuePair.java, org/omg/DynamicAny/DynAny.java, org/omg/DynamicAny/DynAnyOperations.java, org/omg/DynamicAny/DynArray.java, org/omg/DynamicAny/DynArrayOperations.java, org/omg/DynamicAny/DynEnum.java, org/omg/DynamicAny/DynEnumOperations.java, org/omg/DynamicAny/DynFixed.java, org/omg/DynamicAny/DynFixedOperations.java, org/omg/DynamicAny/DynSequence.java, org/omg/DynamicAny/DynSequenceOperations.java, org/omg/DynamicAny/DynStructOperations.java, org/omg/DynamicAny/DynStruct.java: New files.
Diffstat (limited to 'org/omg/DynamicAny/DynFixedOperations.java')
-rw-r--r--org/omg/DynamicAny/DynFixedOperations.java70
1 files changed, 70 insertions, 0 deletions
diff --git a/org/omg/DynamicAny/DynFixedOperations.java b/org/omg/DynamicAny/DynFixedOperations.java
new file mode 100644
index 000000000..1178e7c92
--- /dev/null
+++ b/org/omg/DynamicAny/DynFixedOperations.java
@@ -0,0 +1,70 @@
+/* DynFixedOperations.java --
+ Copyright (C) 2005 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package org.omg.DynamicAny;
+
+import org.omg.DynamicAny.DynAnyPackage.InvalidValue;
+import org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
+
+/**
+ * Defines operations, applicable for DynAny, holding CORBA <code>fixed</code>.
+ * These operations take and return this data type in its string representation.
+ *
+ * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
+ */
+public interface DynFixedOperations
+{
+ /**
+ * Get the value of the enclosed DynFixed, as string.
+ */
+ String get_value();
+
+ /**
+ * Set the value of the enclosed DynFixed, from string.
+ *
+ * @param fixed_value the value to set.
+ *
+ * @throws TypeMismatch if the passed string cannot be parsed into CORBA
+ * <code>fixed</code>. The valid string can only contain digits, decimal
+ * point and optional leading and trailing whitespace.
+ *
+ * @return true if the passed value can be represented without the loss of
+ * precision, false if some fractional digits were truncated.
+ */
+ boolean set_value(String fixed_value) throws TypeMismatch, InvalidValue;
+}