KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > DynamicAny > DynFixedOperations


1 package org.omg.DynamicAny;
2
3
4 /**
5 * org/omg/DynamicAny/DynFixedOperations.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/DynamicAny/DynamicAny.idl
8 * Saturday, February 9, 2008 9:40:12 AM GMT
9 */

10
11
12 /**
13     * DynFixed objects support the manipulation of IDL fixed values.
14     * Because IDL does not have a generic type that can represent fixed types with arbitrary
15     * number of digits and arbitrary scale, the operations use the IDL string type.
16     */

17 public interface DynFixedOperations extends org.omg.DynamicAny.DynAnyOperations JavaDoc
18 {
19
20   /**
21         * Returns the value of a DynFixed.
22         */

23   String JavaDoc get_value ();
24
25   /**
26         * Sets the value of the DynFixed.
27         * The val string must contain a fixed string constant in the same format as used for IDL fixed-point literals.
28         * However, the trailing d or D is optional. The return value is true if val can be represented as the DynFixed
29         * without loss of precision. If val has more fractional digits than can be represented in the DynFixed,
30         * fractional digits are truncated and the return value is false.
31         *
32         * @exception TypeMismatch If val does not contain a valid fixed-point literal or contains extraneous
33         * characters other than leading or trailing white space
34         * @exception InvalidValue If val contains a value whose scale exceeds that of the DynFixed
35         * or is not initialized
36         */

37   boolean set_value (String JavaDoc val) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch JavaDoc, org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc;
38 } // interface DynFixedOperations
39
Popular Tags