38 |
|
|
39 |
package org.omg.CORBA; |
package org.omg.CORBA; |
40 |
|
|
41 |
import gnu.CORBA.primitiveTypeCode; |
import gnu.CORBA.stringTypeCode; |
42 |
|
|
43 |
import org.omg.CORBA.portable.InputStream; |
import org.omg.CORBA.portable.InputStream; |
44 |
import org.omg.CORBA.portable.OutputStream; |
import org.omg.CORBA.portable.OutputStream; |
61 |
/** |
/** |
62 |
* The default type code for this holder. |
* The default type code for this holder. |
63 |
*/ |
*/ |
64 |
private static final TypeCode t_string = |
private static final stringTypeCode t_string = |
65 |
new primitiveTypeCode(TCKind.tk_string); |
new stringTypeCode(TCKind.tk_string); |
66 |
|
|
67 |
/** |
/** |
68 |
* The <code>String</code> (CORBA <code>string</code>) value, |
* The <code>String</code> (CORBA <code>string</code>) value, |
91 |
} |
} |
92 |
|
|
93 |
/** |
/** |
94 |
* Fill in the {@link value } field by reading the required data |
* Fill in the {@link #value } field by reading the required data |
95 |
* from the given stream. For <code>string</code>, the functionality |
* from the given stream. For <code>string</code>, the functionality |
96 |
* is delegated to |
* is delegated to |
97 |
* {@link org.omg.CORBA.portable.InputStream#read_string}. |
* {@link org.omg.CORBA.portable.InputStream#read_string}. |
105 |
|
|
106 |
/** |
/** |
107 |
* Returns the TypeCode, corresponding the CORBA type that is stored |
* Returns the TypeCode, corresponding the CORBA type that is stored |
108 |
* using this holder. |
* using this holder. The {@link TypeCode#length()} method of the |
109 |
|
* returned typecode always returns 0. |
110 |
*/ |
*/ |
111 |
public TypeCode _type() |
public TypeCode _type() |
112 |
{ |
{ |
114 |
} |
} |
115 |
|
|
116 |
/** |
/** |
117 |
* Write the {@link value } field to the given stream. |
* Write the {@link #value } field to the given stream. |
118 |
* For <code>string</code>, the functionality |
* For <code>string</code>, the functionality |
119 |
* is delegated to |
* is delegated to |
120 |
* {@link org.omg.CORBA.portable.OutputStream#write_string(String) }. |
* {@link org.omg.CORBA.portable.OutputStream#write_string(String) }. |