index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTruncBase_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestTruncBase_impl extends TestTruncBase {
}
| 5,400 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueInterfaceHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueInterface:1.0
//
final public class TestValueInterfaceHolder implements org.omg.CORBA.portable.Streamable
{
public TestValueInterface value;
public
TestValueInterfaceHolder()
{
}
public
TestValueInterfaceHolder(TestValueInterface initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestValueInterfaceHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestValueInterfaceHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestValueInterfaceHelper.type();
}
}
| 5,401 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestVarStructBoxHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestVarStructBox:1.0
//
final public class TestVarStructBoxHolder implements org.omg.CORBA.portable.Streamable
{
public TestVarStruct value;
public
TestVarStructBoxHolder()
{
}
public
TestVarStructBoxHolder(TestVarStruct initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestVarStructBoxHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestVarStructBoxHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestVarStructBoxHelper.type();
}
}
| 5,402 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColo_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
import test.obv.TestOBVColoPackage.*;
public class TestOBVColo_impl extends TestOBVColoPOA {
private int count_;
public static void TEST(boolean expr) {
if (!expr)
throw new test.common.TestException();
}
public void set_expected_count(int n) {
count_ = n;
}
public TestValue test_value_attribute() {
return null;
}
public void test_value_attribute(TestValue a) {
if (a != null) {
TEST(a.count == count_);
a.ping1();
a.count = 99997;
}
}
public TestValue test_value_op(TestValue v1, TestValueHolder v2,
TestValueHolder v3) {
if (v1 != null) {
TEST(v1.count == count_);
v1.ping1();
v1.count = 99998;
}
TEST(v2.value == v1);
v2.value = v1;
v3.value = v1;
return v1;
}
public SV test_value_struct_attribute() {
return new SV("hi", null);
}
public void test_value_struct_attribute(SV a) {
if (a.val != null) {
TEST(a.val.count == count_);
a.val.count = 99997;
}
}
public SV test_value_struct_op(SV s1, SVHolder s2, SVHolder s3) {
if (s1.val != null) {
TEST(s1.val.count == count_);
s1.val.count = 99998;
}
TEST(s2.value.val == s1.val);
s3.value = new SV(s2.value.str, s2.value.val);
return new SV(s2.value.str, s2.value.val);
}
public UV test_value_union_attribute() {
UV result = new UV();
result.val(null);
return result;
}
public void test_value_union_attribute(UV a) {
TEST(a.discriminator() == false);
if (a.val() != null) {
TEST(a.val().count == count_);
a.val().count = 99997;
}
}
public UV test_value_union_op(UV u1, UVHolder u2, UVHolder u3) {
TEST(u1.discriminator() == false);
TEST(u2.value.discriminator() == false);
if (u1.val() != null) {
TEST(u1.val().count == count_);
u1.val().count = 99998;
}
TEST(u2.value.val() == u1.val());
u3.value = new UV();
u3.value.val(u2.value.val());
UV result = new UV();
result.val(u2.value.val());
return result;
}
public TestValue[] test_value_seq_attribute() {
return new TestValue[5];
}
public void test_value_seq_attribute(TestValue[] a) {
for (int i = 0; i < a.length; i++) {
if (a[i] != null)
TEST(a[i].count == count_);
TEST(a[i] == a[0]);
}
for (int i = 0; i < a.length; i++) {
if (a[i] != null)
a[i].count = 99997;
}
}
public TestValue[] test_value_seq_op(TestValue[] s1, VSeqHolder s2,
VSeqHolder s3) {
for (int i = 0; i < s1.length; i++) {
if (s1[i] != null)
TEST(s1[i].count == count_);
TEST(s1[i] == s1[0]);
}
for (int i = 0; i < s1.length; i++) {
if (s1[i] != null)
s1[i].count = 99998;
}
TEST(s2.value.length == s1.length);
for (int i = 0; i < s2.value.length; i++)
TEST(s2.value[i] == s1[i]);
s3.value = new TestValue[s2.value.length];
System.arraycopy(s2.value, 0, s3.value, 0, s2.value.length);
TestValue[] result = new TestValue[s2.value.length];
System.arraycopy(s2.value, 0, result, 0, s2.value.length);
return result;
}
public TestAbstract test_abstract_attribute() {
return null;
}
public void test_abstract_attribute(TestAbstract a) {
if (a != null) {
TestAbstractSub sub = null;
try {
sub = TestAbstractSubHelper.narrow(a);
} catch (org.omg.CORBA.BAD_PARAM ex) {
}
TestValueAI v = null;
if (a instanceof TestValueAI)
v = (TestValueAI) a;
if (v != null) {
TEST(v.count == count_);
v.value_op();
v.count = 99996;
}
}
}
public void test_abstract_op(TestAbstract a) {
if (a != null) {
TestAbstractSub sub = null;
try {
sub = TestAbstractSubHelper.narrow(a);
} catch (org.omg.CORBA.BAD_PARAM ex) {
}
TestValueAI v = null;
if (a instanceof TestValueAI)
v = (TestValueAI) a;
if (v != null) {
TEST(v.count == count_);
v.value_op();
v.count = 99996;
}
}
}
}
| 5,403 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueFactory_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestValueFactory_impl implements TestValueValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new TestValue_impl());
}
public TestValue create(int l) {
TestValue result = new TestValue_impl();
result.count = l;
return result;
}
public static TestValueValueFactory install(org.omg.CORBA.ORB orb) {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
TestValueValueFactory result = new TestValueFactory_impl();
orb_2_3.register_value_factory(TestValueHelper.id(), result);
return result;
}
}
| 5,404 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTrunc1Helper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestTrunc1:1.0
//
final public class TestTrunc1Helper
{
public static void
insert(org.omg.CORBA.Any any, TestTrunc1 val)
{
any.insert_Value(val, type());
}
public static TestTrunc1
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestTrunc1)
return (TestTrunc1)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.ValueMember[] members = new org.omg.CORBA.ValueMember[3];
members[0] = new org.omg.CORBA.ValueMember();
members[0].name = "boolVal";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_boolean);
members[0].access = org.omg.CORBA.PUBLIC_MEMBER.value;
members[1] = new org.omg.CORBA.ValueMember();
members[1].name = "v";
members[1].type = TestAbsValue1Helper.type();
members[1].access = org.omg.CORBA.PUBLIC_MEMBER.value;
members[2] = new org.omg.CORBA.ValueMember();
members[2].name = "shortVal";
members[2].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_short);
members[2].access = org.omg.CORBA.PUBLIC_MEMBER.value;
org.omg.CORBA.TypeCode baseType = TestTruncBaseHelper.type();
typeCode_ = orb.create_value_tc(id(), "TestTrunc1", org.omg.CORBA.VM_TRUNCATABLE.value, baseType, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestTrunc1:1.0";
}
public static TestTrunc1
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestTrunc1)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestTrunc1 val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
}
}
| 5,405 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbsValue1.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbsValue1:1.0
//
/***/
public interface TestAbsValue1 extends org.omg.CORBA.portable.ValueBase
{
//
// IDL:TestAbsValue1/ping1:1.0
//
/***/
void
ping1();
}
| 5,406 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestFixUnion.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestFixUnion:1.0
//
/***/
final public class TestFixUnion implements org.omg.CORBA.portable.IDLEntity
{
java.lang.Object _ob_v_;
boolean _ob_i_;
int _ob_d_;
static boolean
_OB_check(int d0, int d1)
{
return d0 == d1;
}
public
TestFixUnion()
{
_ob_i_ = false;
}
public boolean
discriminator()
{
if(!_ob_i_)
throw new org.omg.CORBA.BAD_OPERATION();
return _ob_d_ == 0 ? false : true;
}
public byte
o()
{
if(!_ob_i_)
throw new org.omg.CORBA.BAD_OPERATION();
if(!_OB_check(_ob_d_, 1))
throw new org.omg.CORBA.BAD_OPERATION();
return ((org.omg.CORBA.ByteHolder)_ob_v_).value;
}
public void
o(byte val)
{
_ob_i_ = true;
_ob_d_ = 1;
_ob_v_ = new org.omg.CORBA.ByteHolder(val);
}
public double
d()
{
if(!_ob_i_)
throw new org.omg.CORBA.BAD_OPERATION();
if(!_OB_check(_ob_d_, 0))
throw new org.omg.CORBA.BAD_OPERATION();
return ((org.omg.CORBA.DoubleHolder)_ob_v_).value;
}
public void
d(double val)
{
_ob_i_ = true;
_ob_d_ = 0;
_ob_v_ = new org.omg.CORBA.DoubleHolder(val);
}
}
| 5,407 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTrunc1Holder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestTrunc1:1.0
//
final public class TestTrunc1Holder implements org.omg.CORBA.portable.Streamable
{
public TestTrunc1 value;
public
TestTrunc1Holder()
{
}
public
TestTrunc1Holder(TestTrunc1 initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestTrunc1Helper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestTrunc1Helper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestTrunc1Helper.type();
}
}
| 5,408 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueInterfaceValueFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueInterface:1.0
//
/***/
public interface TestValueInterfaceValueFactory extends org.omg.CORBA.portable.ValueFactory
{
TestValueInterface
create(int l);
}
| 5,409 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTrunc1Factory_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestTrunc1Factory_impl implements
org.omg.CORBA.portable.ValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new TestTrunc1_impl());
}
public static void install(org.omg.CORBA.ORB orb) {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
orb_2_3.register_value_factory(TestTrunc1Helper.id(),
new TestTrunc1Factory_impl());
}
}
| 5,410 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestVarStructBoxHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestVarStructBox:1.0
//
final public class TestVarStructBoxHelper implements org.omg.CORBA.portable.BoxedValueHelper
{
private static final TestVarStructBoxHelper _instance = new TestVarStructBoxHelper();
public static void
insert(org.omg.CORBA.Any any, TestVarStruct val)
{
any.insert_Value((java.io.Serializable)val, type());
}
public static TestVarStruct
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestVarStruct)
return (TestVarStruct)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_value_box_tc(id(), "TestVarStructBox", TestVarStructHelper.type());
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestVarStructBox:1.0";
}
public static TestVarStruct
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestVarStruct)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(_instance);
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestVarStruct val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value((java.io.Serializable)val, _instance);
}
public java.io.Serializable
read_value(org.omg.CORBA.portable.InputStream in)
{
TestVarStruct _ob_v;
_ob_v = TestVarStructHelper.read(in);
return (java.io.Serializable)_ob_v;
}
public void
write_value(org.omg.CORBA.portable.OutputStream out, java.io.Serializable val)
{
if(!(val instanceof TestVarStruct))
throw new org.omg.CORBA.MARSHAL();
TestVarStruct _ob_value = (TestVarStruct)val;
TestVarStructHelper.write(out, _ob_value);
}
public String
get_id()
{
return id();
}
}
| 5,411 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/_TestOBVColoStub.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBVColo:1.0
//
public class _TestOBVColoStub extends org.omg.CORBA.portable.ObjectImpl
implements TestOBVColo
{
private static final String[] _ob_ids_ =
{
"IDL:TestOBVColo:1.0",
};
public String[]
_ids()
{
return _ob_ids_;
}
final public static java.lang.Class _ob_opsClass = TestOBVColoOperations.class;
//
// IDL:TestOBVColo/test_value_attribute:1.0
//
public TestValue
test_value_attribute()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("_get_test_value_attribute", true);
in = _invoke(out);
TestValue _ob_r = TestValueHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_attribute", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
TestValue _ob_r = _ob_self.test_value_attribute();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestValueHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
public void
test_value_attribute(TestValue _ob_a)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("_set_test_value_attribute", true);
TestValueHelper.write(out, _ob_a);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_attribute", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_a);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a = TestValueHelper.read(_ob_in);
_ob_self.test_value_attribute(_ob_a);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBVColo/test_value_struct_attribute:1.0
//
public test.obv.TestOBVColoPackage.SV
test_value_struct_attribute()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("_get_test_value_struct_attribute", true);
in = _invoke(out);
test.obv.TestOBVColoPackage.SV _ob_r = test.obv.TestOBVColoPackage.SVHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_struct_attribute", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
test.obv.TestOBVColoPackage.SV _ob_r = _ob_self.test_value_struct_attribute();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
test.obv.TestOBVColoPackage.SVHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = test.obv.TestOBVColoPackage.SVHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
public void
test_value_struct_attribute(test.obv.TestOBVColoPackage.SV _ob_a)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("_set_test_value_struct_attribute", true);
test.obv.TestOBVColoPackage.SVHelper.write(out, _ob_a);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_struct_attribute", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
test.obv.TestOBVColoPackage.SVHelper.write(_ob_out, _ob_a);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a = test.obv.TestOBVColoPackage.SVHelper.read(_ob_in);
_ob_self.test_value_struct_attribute(_ob_a);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBVColo/test_value_union_attribute:1.0
//
public test.obv.TestOBVColoPackage.UV
test_value_union_attribute()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("_get_test_value_union_attribute", true);
in = _invoke(out);
test.obv.TestOBVColoPackage.UV _ob_r = test.obv.TestOBVColoPackage.UVHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_union_attribute", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
test.obv.TestOBVColoPackage.UV _ob_r = _ob_self.test_value_union_attribute();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
test.obv.TestOBVColoPackage.UVHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = test.obv.TestOBVColoPackage.UVHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
public void
test_value_union_attribute(test.obv.TestOBVColoPackage.UV _ob_a)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("_set_test_value_union_attribute", true);
test.obv.TestOBVColoPackage.UVHelper.write(out, _ob_a);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_union_attribute", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
test.obv.TestOBVColoPackage.UVHelper.write(_ob_out, _ob_a);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a = test.obv.TestOBVColoPackage.UVHelper.read(_ob_in);
_ob_self.test_value_union_attribute(_ob_a);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBVColo/test_value_seq_attribute:1.0
//
public TestValue[]
test_value_seq_attribute()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("_get_test_value_seq_attribute", true);
in = _invoke(out);
TestValue[] _ob_r = test.obv.TestOBVColoPackage.VSeqHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_seq_attribute", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
TestValue[] _ob_r = _ob_self.test_value_seq_attribute();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
test.obv.TestOBVColoPackage.VSeqHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = test.obv.TestOBVColoPackage.VSeqHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
public void
test_value_seq_attribute(TestValue[] _ob_a)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("_set_test_value_seq_attribute", true);
test.obv.TestOBVColoPackage.VSeqHelper.write(out, _ob_a);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_seq_attribute", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
test.obv.TestOBVColoPackage.VSeqHelper.write(_ob_out, _ob_a);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a = test.obv.TestOBVColoPackage.VSeqHelper.read(_ob_in);
_ob_self.test_value_seq_attribute(_ob_a);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBVColo/test_abstract_attribute:1.0
//
public TestAbstract
test_abstract_attribute()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("_get_test_abstract_attribute", true);
in = _invoke(out);
TestAbstract _ob_r = TestAbstractHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_abstract_attribute", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
TestAbstract _ob_r = _ob_self.test_abstract_attribute();
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbstractHelper.write(_ob_out, _ob_r);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_r = TestAbstractHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
public void
test_abstract_attribute(TestAbstract _ob_a)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("_set_test_abstract_attribute", true);
TestAbstractHelper.write(out, _ob_a);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_abstract_attribute", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbstractHelper.write(_ob_out, _ob_a);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a = TestAbstractHelper.read(_ob_in);
_ob_self.test_abstract_attribute(_ob_a);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBVColo/set_expected_count:1.0
//
public void
set_expected_count(int _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("set_expected_count", true);
out.write_long(_ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("set_expected_count", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
_ob_self.set_expected_count(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBVColo/test_value_op:1.0
//
public TestValue
test_value_op(TestValue _ob_a0,
TestValueHolder _ob_ah1,
TestValueHolder _ob_ah2)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("test_value_op", true);
TestValueHelper.write(out, _ob_a0);
TestValueHelper.write(out, _ob_ah1.value);
in = _invoke(out);
TestValue _ob_r = TestValueHelper.read(in);
_ob_ah1.value = TestValueHelper.read(in);
_ob_ah2.value = TestValueHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_op", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_a0);
TestValueHelper.write(_ob_out, _ob_ah1.value);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestValueHelper.read(_ob_in);
_ob_ah1.value = TestValueHelper.read(_ob_in);
TestValue _ob_r = _ob_self.test_value_op(_ob_a0, _ob_ah1, _ob_ah2);
_ob_out = _orb().create_output_stream();
TestValueHelper.write(_ob_out, _ob_r);
TestValueHelper.write(_ob_out, _ob_ah1.value);
TestValueHelper.write(_ob_out, _ob_ah2.value);
_ob_in = _ob_out.create_input_stream();
_ob_r = TestValueHelper.read(_ob_in);
_ob_ah1.value = TestValueHelper.read(_ob_in);
_ob_ah2.value = TestValueHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBVColo/test_value_struct_op:1.0
//
public test.obv.TestOBVColoPackage.SV
test_value_struct_op(test.obv.TestOBVColoPackage.SV _ob_a0,
test.obv.TestOBVColoPackage.SVHolder _ob_ah1,
test.obv.TestOBVColoPackage.SVHolder _ob_ah2)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("test_value_struct_op", true);
test.obv.TestOBVColoPackage.SVHelper.write(out, _ob_a0);
test.obv.TestOBVColoPackage.SVHelper.write(out, _ob_ah1.value);
in = _invoke(out);
test.obv.TestOBVColoPackage.SV _ob_r = test.obv.TestOBVColoPackage.SVHelper.read(in);
_ob_ah1.value = test.obv.TestOBVColoPackage.SVHelper.read(in);
_ob_ah2.value = test.obv.TestOBVColoPackage.SVHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_struct_op", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
test.obv.TestOBVColoPackage.SVHelper.write(_ob_out, _ob_a0);
test.obv.TestOBVColoPackage.SVHelper.write(_ob_out, _ob_ah1.value);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = test.obv.TestOBVColoPackage.SVHelper.read(_ob_in);
_ob_ah1.value = test.obv.TestOBVColoPackage.SVHelper.read(_ob_in);
test.obv.TestOBVColoPackage.SV _ob_r = _ob_self.test_value_struct_op(_ob_a0, _ob_ah1, _ob_ah2);
_ob_out = _orb().create_output_stream();
test.obv.TestOBVColoPackage.SVHelper.write(_ob_out, _ob_r);
test.obv.TestOBVColoPackage.SVHelper.write(_ob_out, _ob_ah1.value);
test.obv.TestOBVColoPackage.SVHelper.write(_ob_out, _ob_ah2.value);
_ob_in = _ob_out.create_input_stream();
_ob_r = test.obv.TestOBVColoPackage.SVHelper.read(_ob_in);
_ob_ah1.value = test.obv.TestOBVColoPackage.SVHelper.read(_ob_in);
_ob_ah2.value = test.obv.TestOBVColoPackage.SVHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBVColo/test_value_union_op:1.0
//
public test.obv.TestOBVColoPackage.UV
test_value_union_op(test.obv.TestOBVColoPackage.UV _ob_a0,
test.obv.TestOBVColoPackage.UVHolder _ob_ah1,
test.obv.TestOBVColoPackage.UVHolder _ob_ah2)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("test_value_union_op", true);
test.obv.TestOBVColoPackage.UVHelper.write(out, _ob_a0);
test.obv.TestOBVColoPackage.UVHelper.write(out, _ob_ah1.value);
in = _invoke(out);
test.obv.TestOBVColoPackage.UV _ob_r = test.obv.TestOBVColoPackage.UVHelper.read(in);
_ob_ah1.value = test.obv.TestOBVColoPackage.UVHelper.read(in);
_ob_ah2.value = test.obv.TestOBVColoPackage.UVHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_union_op", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
test.obv.TestOBVColoPackage.UVHelper.write(_ob_out, _ob_a0);
test.obv.TestOBVColoPackage.UVHelper.write(_ob_out, _ob_ah1.value);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = test.obv.TestOBVColoPackage.UVHelper.read(_ob_in);
_ob_ah1.value = test.obv.TestOBVColoPackage.UVHelper.read(_ob_in);
test.obv.TestOBVColoPackage.UV _ob_r = _ob_self.test_value_union_op(_ob_a0, _ob_ah1, _ob_ah2);
_ob_out = _orb().create_output_stream();
test.obv.TestOBVColoPackage.UVHelper.write(_ob_out, _ob_r);
test.obv.TestOBVColoPackage.UVHelper.write(_ob_out, _ob_ah1.value);
test.obv.TestOBVColoPackage.UVHelper.write(_ob_out, _ob_ah2.value);
_ob_in = _ob_out.create_input_stream();
_ob_r = test.obv.TestOBVColoPackage.UVHelper.read(_ob_in);
_ob_ah1.value = test.obv.TestOBVColoPackage.UVHelper.read(_ob_in);
_ob_ah2.value = test.obv.TestOBVColoPackage.UVHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBVColo/test_value_seq_op:1.0
//
public TestValue[]
test_value_seq_op(TestValue[] _ob_a0,
test.obv.TestOBVColoPackage.VSeqHolder _ob_ah1,
test.obv.TestOBVColoPackage.VSeqHolder _ob_ah2)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("test_value_seq_op", true);
test.obv.TestOBVColoPackage.VSeqHelper.write(out, _ob_a0);
test.obv.TestOBVColoPackage.VSeqHelper.write(out, _ob_ah1.value);
in = _invoke(out);
TestValue[] _ob_r = test.obv.TestOBVColoPackage.VSeqHelper.read(in);
_ob_ah1.value = test.obv.TestOBVColoPackage.VSeqHelper.read(in);
_ob_ah2.value = test.obv.TestOBVColoPackage.VSeqHelper.read(in);
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_value_seq_op", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
test.obv.TestOBVColoPackage.VSeqHelper.write(_ob_out, _ob_a0);
test.obv.TestOBVColoPackage.VSeqHelper.write(_ob_out, _ob_ah1.value);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = test.obv.TestOBVColoPackage.VSeqHelper.read(_ob_in);
_ob_ah1.value = test.obv.TestOBVColoPackage.VSeqHelper.read(_ob_in);
TestValue[] _ob_r = _ob_self.test_value_seq_op(_ob_a0, _ob_ah1, _ob_ah2);
_ob_out = _orb().create_output_stream();
int len0 = _ob_r.length;
_ob_out.write_ulong(len0);
for(int i0 = 0; i0 < len0; i0++)
TestValueHelper.write(_ob_out, _ob_r[i0]);
test.obv.TestOBVColoPackage.VSeqHelper.write(_ob_out, _ob_ah1.value);
test.obv.TestOBVColoPackage.VSeqHelper.write(_ob_out, _ob_ah2.value);
_ob_in = _ob_out.create_input_stream();
int len1 = _ob_in.read_ulong();
_ob_r = new TestValue[len1];
for(int i1 = 0; i1 < len1; i1++)
_ob_r[i1] = TestValueHelper.read(_ob_in);
_ob_ah1.value = test.obv.TestOBVColoPackage.VSeqHelper.read(_ob_in);
_ob_ah2.value = test.obv.TestOBVColoPackage.VSeqHelper.read(_ob_in);
return _ob_r;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:TestOBVColo/test_abstract_op:1.0
//
public void
test_abstract_op(TestAbstract _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("test_abstract_op", true);
TestAbstractHelper.write(out, _ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("test_abstract_op", _ob_opsClass);
if(_ob_so == null)
continue;
TestOBVColoOperations _ob_self = (TestOBVColoOperations)_ob_so.servant;
try
{
org.omg.CORBA.portable.OutputStream _ob_out = _orb().create_output_stream();
TestAbstractHelper.write(_ob_out, _ob_a0);
org.omg.CORBA.portable.InputStream _ob_in = _ob_out.create_input_stream();
_ob_a0 = TestAbstractHelper.read(_ob_in);
_ob_self.test_abstract_op(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
}
| 5,412 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValue.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValue:1.0
//
/***/
public abstract class TestValue implements org.omg.CORBA.portable.StreamableValue,
TestAbsValue1
{
//
// IDL:TestValue/count:1.0
//
/***/
public int count;
private static String[] _OB_truncatableIds_ =
{
TestValueHelper.id()
};
public String[]
_truncatable_ids()
{
return _OB_truncatableIds_;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
count = in.read_long();
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
out.write_long(count);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestValueHelper.type();
}
}
| 5,413 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestStringSeqHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestStringSeq:1.0
//
final public class TestStringSeqHolder implements org.omg.CORBA.portable.Streamable
{
public String[] value;
public
TestStringSeqHolder()
{
}
public
TestStringSeqHolder(String[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestStringSeqHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestStringSeqHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestStringSeqHelper.type();
}
}
| 5,414 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueInterfaceHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueInterface:1.0
//
final public class TestValueInterfaceHelper
{
public static void
insert(org.omg.CORBA.Any any, TestValueInterface val)
{
any.insert_Value(val, type());
}
public static TestValueInterface
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestValueInterface)
return (TestValueInterface)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.ValueMember[] members = new org.omg.CORBA.ValueMember[1];
members[0] = new org.omg.CORBA.ValueMember();
members[0].name = "count";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
members[0].access = org.omg.CORBA.PUBLIC_MEMBER.value;
typeCode_ = orb.create_value_tc(id(), "TestValueInterface", org.omg.CORBA.VM_NONE.value, null, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestValueInterface:1.0";
}
public static TestValueInterface
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestValueInterface)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestValueInterface val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
}
public static TestValueInterface
create(org.omg.CORBA.ORB orb,
int l)
{
TestValueInterfaceValueFactory _ob_f = _OB_getFactory(orb);
return _ob_f.create(l);
}
private static TestValueInterfaceValueFactory
_OB_getFactory(org.omg.CORBA.ORB orb)
{
org.omg.CORBA.portable.ValueFactory _ob_f = ((org.omg.CORBA_2_3.ORB)orb).lookup_value_factory(id());
if(_ob_f == null)
throw new org.omg.CORBA.MARSHAL(1, org.omg.CORBA.CompletionStatus.COMPLETED_NO);
return (TestValueInterfaceValueFactory)_ob_f;
}
}
| 5,415 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbstract.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstract:1.0
//
/***/
public interface TestAbstract extends org.omg.CORBA.portable.IDLEntity
{
//
// IDL:TestAbstract/abstract_op:1.0
//
/***/
void
abstract_op();
}
| 5,416 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbsValue2Holder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbsValue2:1.0
//
final public class TestAbsValue2Holder implements org.omg.CORBA.portable.Streamable
{
public TestAbsValue2 value;
public
TestAbsValue2Holder()
{
}
public
TestAbsValue2Holder(TestAbsValue2 initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestAbsValue2Helper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestAbsValue2Helper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestAbsValue2Helper.type();
}
}
| 5,417 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestInterfaceHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestInterface:1.0
//
final public class TestInterfaceHolder implements org.omg.CORBA.portable.Streamable
{
public TestInterface value;
public
TestInterfaceHolder()
{
}
public
TestInterfaceHolder(TestInterface initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestInterfaceHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestInterfaceHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestInterfaceHelper.type();
}
}
| 5,418 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBVColo:1.0
//
final public class TestOBVColoHolder implements org.omg.CORBA.portable.Streamable
{
public TestOBVColo value;
public
TestOBVColoHolder()
{
}
public
TestOBVColoHolder(TestOBVColo initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestOBVColoHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestOBVColoHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestOBVColoHelper.type();
}
}
| 5,419 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestVarStructHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestVarStruct:1.0
//
final public class TestVarStructHolder implements org.omg.CORBA.portable.Streamable
{
public TestVarStruct value;
public
TestVarStructHolder()
{
}
public
TestVarStructHolder(TestVarStruct initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestVarStructHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestVarStructHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestVarStructHelper.type();
}
}
| 5,420 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbstractSubPOA.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstractSub:1.0
//
public abstract class TestAbstractSubPOA
extends org.omg.PortableServer.Servant
implements org.omg.CORBA.portable.InvokeHandler,
TestAbstractSubOperations
{
static final String[] _ob_ids_ =
{
"IDL:TestAbstractSub:1.0",
"IDL:TestAbstract:1.0"
};
public TestAbstractSub
_this()
{
return TestAbstractSubHelper.narrow(super._this_object());
}
public TestAbstractSub
_this(org.omg.CORBA.ORB orb)
{
return TestAbstractSubHelper.narrow(super._this_object(orb));
}
public String[]
_all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId)
{
return _ob_ids_;
}
public org.omg.CORBA.portable.OutputStream
_invoke(String opName,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
final String[] _ob_names =
{
"abstract_op",
"sub_op"
};
int _ob_left = 0;
int _ob_right = _ob_names.length;
int _ob_index = -1;
while(_ob_left < _ob_right)
{
int _ob_m = (_ob_left + _ob_right) / 2;
int _ob_res = _ob_names[_ob_m].compareTo(opName);
if(_ob_res == 0)
{
_ob_index = _ob_m;
break;
}
else if(_ob_res > 0)
_ob_right = _ob_m;
else
_ob_left = _ob_m + 1;
}
if(_ob_index == -1 && opName.charAt(0) == '_')
{
_ob_left = 0;
_ob_right = _ob_names.length;
String _ob_ami_op =
opName.substring(1);
while(_ob_left < _ob_right)
{
int _ob_m = (_ob_left + _ob_right) / 2;
int _ob_res = _ob_names[_ob_m].compareTo(_ob_ami_op);
if(_ob_res == 0)
{
_ob_index = _ob_m;
break;
}
else if(_ob_res > 0)
_ob_right = _ob_m;
else
_ob_left = _ob_m + 1;
}
}
switch(_ob_index)
{
case 0: // abstract_op
return _OB_op_abstract_op(in, handler);
case 1: // sub_op
return _OB_op_sub_op(in, handler);
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private org.omg.CORBA.portable.OutputStream
_OB_op_abstract_op(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
abstract_op();
out = handler.createReply();
return out;
}
private org.omg.CORBA.portable.OutputStream
_OB_op_sub_op(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
sub_op();
out = handler.createReply();
return out;
}
}
| 5,421 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestTrunc2_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestTrunc2_impl extends TestTrunc2 {
}
| 5,422 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/Server.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
import java.util.Properties;
import org.omg.CORBA.*;
import org.omg.PortableServer.*;
public class Server {
public static int run(ORB orb, String[] args)
throws org.omg.CORBA.UserException {
//
// Resolve Root POA
//
POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
//
// Activate the POA manager
//
POAManager manager = poa.the_POAManager();
manager.activate();
//
// Install value factories
//
TestValueValueFactory valueFactory = TestValueFactory_impl.install(orb);
TestValueSubValueFactory valueSubFactory = TestValueSubFactory_impl
.install(orb);
TestTruncBaseFactory_impl.install(orb);
TestTrunc1Factory_impl.install(orb);
TestTrunc2Factory_impl.install(orb);
TestCustomValueFactory customFactory = TestCustomFactory_impl
.install(orb);
TestNodeValueFactory nodeFactory = TestNodeFactory_impl.install(orb);
TestValueAIValueFactory valueAIFactory = TestValueAIFactory_impl
.install(orb);
TestValueInterfaceValueFactory valueInterfaceFactory = TestValueInterfaceFactory_impl
.install(orb);
//
// Install valuebox factories
//
ValueBoxFactories.install(orb);
//
// Create implementation objects
//
TestAbstractSub_impl absSubImpl = new TestAbstractSub_impl();
TestAbstract absInterface = absSubImpl._this(orb);
TestValueAI absValue = valueAIFactory.create(12345);
TestOBV_impl i = new TestOBV_impl(orb, valueFactory, valueSubFactory,
customFactory, nodeFactory, absInterface, absValue,
valueInterfaceFactory);
TestOBV p = i._this(orb);
//
// Save references. This must be done after POA manager
// activation, otherwise there is a potential for a race
// condition between the client sending request and the server
// not being ready yet.
//
String refFile = "TestOBV.ref";
try {
String ref = orb.object_to_string(p);
java.io.FileOutputStream file = new java.io.FileOutputStream(
refFile);
java.io.PrintWriter out = new java.io.PrintWriter(file);
out.println(ref);
out.flush();
file.close();
} catch (java.io.IOException ex) {
System.err.println("Can't write to `" + ex.getMessage() + "'");
return 1;
}
//
// Give up control to the ORB
//
orb.run();
//
// Delete file
//
new java.io.File(refFile).delete();
return 0;
}
public static void main(String args[]) {
java.util.Properties props = new Properties();
props.putAll(System.getProperties());
props.put("org.omg.CORBA.ORBClass", "org.apache.yoko.orb.CORBA.ORB");
props.put("org.omg.CORBA.ORBSingletonClass",
"org.apache.yoko.orb.CORBA.ORBSingleton");
int status = 0;
ORB orb = null;
try {
orb = ORB.init(args, props);
status = run(orb, args);
} catch (Exception ex) {
ex.printStackTrace();
status = 1;
}
if (orb != null) {
try {
orb.destroy();
} catch (Exception ex) {
ex.printStackTrace();
status = 1;
}
}
System.exit(status);
}
}
| 5,423 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueSubFactory_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestValueSubFactory_impl implements TestValueSubValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new TestValueSub_impl());
}
public TestValueSub create_sub(int l, String s) {
TestValueSub result = new TestValueSub_impl();
result.count = l;
result.name = s;
return result;
}
public static TestValueSubValueFactory install(org.omg.CORBA.ORB orb) {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
TestValueSubValueFactory result = new TestValueSubFactory_impl();
orb_2_3.register_value_factory(TestValueSubHelper.id(), result);
return result;
}
}
| 5,424 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValue_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestValue_impl extends TestValue {
public void ping1() {
// do nothing
}
}
| 5,425 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestFixStructBoxHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestFixStructBox:1.0
//
final public class TestFixStructBoxHolder implements org.omg.CORBA.portable.Streamable
{
public TestFixStruct value;
public
TestFixStructBoxHolder()
{
}
public
TestFixStructBoxHolder(TestFixStruct initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestFixStructBoxHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestFixStructBoxHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestFixStructBoxHelper.type();
}
}
| 5,426 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestFixStructHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestFixStruct:1.0
//
final public class TestFixStructHelper
{
public static void
insert(org.omg.CORBA.Any any, TestFixStruct val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestFixStruct
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[3];
members[0] = new org.omg.CORBA.StructMember();
members[0].name = "x";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
members[1] = new org.omg.CORBA.StructMember();
members[1].name = "y";
members[1].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
members[2] = new org.omg.CORBA.StructMember();
members[2].name = "radius";
members[2].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_double);
typeCode_ = orb.create_struct_tc(id(), "TestFixStruct", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestFixStruct:1.0";
}
public static TestFixStruct
read(org.omg.CORBA.portable.InputStream in)
{
TestFixStruct _ob_v = new TestFixStruct();
_ob_v.x = in.read_long();
_ob_v.y = in.read_long();
_ob_v.radius = in.read_double();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestFixStruct val)
{
out.write_long(val.x);
out.write_long(val.y);
out.write_double(val.radius);
}
}
| 5,427 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestULongBoxHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestULongBox:1.0
//
final public class TestULongBoxHelper implements org.omg.CORBA.portable.BoxedValueHelper
{
private static final TestULongBoxHelper _instance = new TestULongBoxHelper();
public static void
insert(org.omg.CORBA.Any any, TestULongBox val)
{
any.insert_Value((java.io.Serializable)val, type());
}
public static TestULongBox
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestULongBox)
return (TestULongBox)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_value_box_tc(id(), "TestULongBox", orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_ulong));
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestULongBox:1.0";
}
public static TestULongBox
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestULongBox)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(_instance);
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestULongBox val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value((java.io.Serializable)val, _instance);
}
public java.io.Serializable
read_value(org.omg.CORBA.portable.InputStream in)
{
int _ob_v;
_ob_v = in.read_ulong();
return new TestULongBox(_ob_v);
}
public void
write_value(org.omg.CORBA.portable.OutputStream out, java.io.Serializable val)
{
if(!(val instanceof TestULongBox))
throw new org.omg.CORBA.MARSHAL();
int _ob_value = ((TestULongBox)val).value;
out.write_ulong(_ob_value);
}
public String
get_id()
{
return id();
}
}
| 5,428 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestFixStructBoxHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestFixStructBox:1.0
//
final public class TestFixStructBoxHelper implements org.omg.CORBA.portable.BoxedValueHelper
{
private static final TestFixStructBoxHelper _instance = new TestFixStructBoxHelper();
public static void
insert(org.omg.CORBA.Any any, TestFixStruct val)
{
any.insert_Value((java.io.Serializable)val, type());
}
public static TestFixStruct
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestFixStruct)
return (TestFixStruct)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_value_box_tc(id(), "TestFixStructBox", TestFixStructHelper.type());
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestFixStructBox:1.0";
}
public static TestFixStruct
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestFixStruct)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(_instance);
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestFixStruct val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value((java.io.Serializable)val, _instance);
}
public java.io.Serializable
read_value(org.omg.CORBA.portable.InputStream in)
{
TestFixStruct _ob_v;
_ob_v = TestFixStructHelper.read(in);
return (java.io.Serializable)_ob_v;
}
public void
write_value(org.omg.CORBA.portable.OutputStream out, java.io.Serializable val)
{
if(!(val instanceof TestFixStruct))
throw new org.omg.CORBA.MARSHAL();
TestFixStruct _ob_value = (TestFixStruct)val;
TestFixStructHelper.write(out, _ob_value);
}
public String
get_id()
{
return id();
}
}
| 5,429 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestULongBoxHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestULongBox:1.0
//
final public class TestULongBoxHolder implements org.omg.CORBA.portable.Streamable
{
public TestULongBox value;
public
TestULongBoxHolder()
{
}
public
TestULongBoxHolder(TestULongBox initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestULongBoxHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestULongBoxHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestULongBoxHelper.type();
}
}
| 5,430 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestFixStructHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestFixStruct:1.0
//
final public class TestFixStructHolder implements org.omg.CORBA.portable.Streamable
{
public TestFixStruct value;
public
TestFixStructHolder()
{
}
public
TestFixStructHolder(TestFixStruct initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestFixStructHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestFixStructHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestFixStructHelper.type();
}
}
| 5,431 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbsValue2Helper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbsValue2:1.0
//
final public class TestAbsValue2Helper
{
public static void
insert(org.omg.CORBA.Any any, TestAbsValue2 val)
{
any.insert_Value(val, type());
}
public static TestAbsValue2
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestAbsValue2)
return (TestAbsValue2)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.ValueMember[] members = new org.omg.CORBA.ValueMember[0];
typeCode_ = orb.create_value_tc(id(), "TestAbsValue2", org.omg.CORBA.VM_ABSTRACT.value, null, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestAbsValue2:1.0";
}
public static TestAbsValue2
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (TestAbsValue2)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestAbsValue2 val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value(val, id());
}
}
| 5,432 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestInterfaceHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestInterface:1.0
//
final public class TestInterfaceHelper
{
public static void
insert(org.omg.CORBA.Any any, TestInterface val)
{
any.insert_Object(val, type());
}
public static TestInterface
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return narrow(any.extract_Object());
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_interface_tc(id(), "TestInterface");
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestInterface:1.0";
}
public static TestInterface
read(org.omg.CORBA.portable.InputStream in)
{
org.omg.CORBA.Object _ob_v = in.read_Object();
try
{
return (TestInterface)_ob_v;
}
catch(ClassCastException ex)
{
}
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)_ob_v;
_TestInterfaceStub _ob_stub = new _TestInterfaceStub();
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestInterface val)
{
out.write_Object(val);
}
public static TestInterface
narrow(org.omg.CORBA.Object val)
{
if(val != null)
{
try
{
return (TestInterface)val;
}
catch(ClassCastException ex)
{
}
if(val._is_a(id()))
{
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_TestInterfaceStub _ob_stub = new _TestInterfaceStub();
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)val;
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
throw new org.omg.CORBA.BAD_PARAM();
}
return null;
}
public static TestInterface
unchecked_narrow(org.omg.CORBA.Object val)
{
if(val != null)
{
try
{
return (TestInterface)val;
}
catch(ClassCastException ex)
{
}
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_TestInterfaceStub _ob_stub = new _TestInterfaceStub();
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)val;
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
return null;
}
}
| 5,433 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBVColo:1.0
//
final public class TestOBVColoHelper
{
public static void
insert(org.omg.CORBA.Any any, TestOBVColo val)
{
any.insert_Object(val, type());
}
public static TestOBVColo
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return narrow(any.extract_Object());
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_interface_tc(id(), "TestOBVColo");
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestOBVColo:1.0";
}
public static TestOBVColo
read(org.omg.CORBA.portable.InputStream in)
{
org.omg.CORBA.Object _ob_v = in.read_Object();
try
{
return (TestOBVColo)_ob_v;
}
catch(ClassCastException ex)
{
}
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)_ob_v;
_TestOBVColoStub _ob_stub = new _TestOBVColoStub();
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestOBVColo val)
{
out.write_Object(val);
}
public static TestOBVColo
narrow(org.omg.CORBA.Object val)
{
if(val != null)
{
try
{
return (TestOBVColo)val;
}
catch(ClassCastException ex)
{
}
if(val._is_a(id()))
{
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_TestOBVColoStub _ob_stub = new _TestOBVColoStub();
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)val;
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
throw new org.omg.CORBA.BAD_PARAM();
}
return null;
}
public static TestOBVColo
unchecked_narrow(org.omg.CORBA.Object val)
{
if(val != null)
{
try
{
return (TestOBVColo)val;
}
catch(ClassCastException ex)
{
}
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_TestOBVColoStub _ob_stub = new _TestOBVColoStub();
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)val;
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
return null;
}
}
| 5,434 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestVarStructHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestVarStruct:1.0
//
final public class TestVarStructHelper
{
public static void
insert(org.omg.CORBA.Any any, TestVarStruct val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestVarStruct
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[2];
members[0] = new org.omg.CORBA.StructMember();
members[0].name = "name";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string);
members[1] = new org.omg.CORBA.StructMember();
members[1].name = "email";
members[1].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string);
typeCode_ = orb.create_struct_tc(id(), "TestVarStruct", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestVarStruct:1.0";
}
public static TestVarStruct
read(org.omg.CORBA.portable.InputStream in)
{
TestVarStruct _ob_v = new TestVarStruct();
_ob_v.name = in.read_string();
_ob_v.email = in.read_string();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestVarStruct val)
{
out.write_string(val.name);
out.write_string(val.email);
}
}
| 5,435 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestCustomFactory_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
public class TestCustomFactory_impl implements TestCustomValueFactory {
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new TestCustom_impl());
}
public TestCustom create(short s, int l, String str, double d) {
TestCustom result = new TestCustom_impl();
result.shortVal = s;
result.longVal = l;
result.stringVal = str;
result.doubleVal = d;
return result;
}
public static TestCustomValueFactory install(org.omg.CORBA.ORB orb) {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb;
TestCustomValueFactory result = new TestCustomFactory_impl();
orb_2_3.register_value_factory(TestCustomHelper.id(), result);
return result;
}
}
| 5,436 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestStringSeqBoxHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestStringSeqBox:1.0
//
final public class TestStringSeqBoxHelper implements org.omg.CORBA.portable.BoxedValueHelper
{
private static final TestStringSeqBoxHelper _instance = new TestStringSeqBoxHelper();
public static void
insert(org.omg.CORBA.Any any, String[] val)
{
any.insert_Value((java.io.Serializable)val, type());
}
public static String[]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof String[])
return (String[])_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_value_box_tc(id(), "TestStringSeqBox", TestStringSeqHelper.type());
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestStringSeqBox:1.0";
}
public static String[]
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (String[])((org.omg.CORBA_2_3.portable.InputStream)in).read_value(_instance);
}
public static void
write(org.omg.CORBA.portable.OutputStream out, String[] val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value((java.io.Serializable)val, _instance);
}
public java.io.Serializable
read_value(org.omg.CORBA.portable.InputStream in)
{
String[] _ob_v;
_ob_v = TestStringSeqHelper.read(in);
return (java.io.Serializable)_ob_v;
}
public void
write_value(org.omg.CORBA.portable.OutputStream out, java.io.Serializable val)
{
if(!(val instanceof String[]))
throw new org.omg.CORBA.MARSHAL();
String[] _ob_value = (String[])val;
TestStringSeqHelper.write(out, _ob_value);
}
public String
get_id()
{
return id();
}
}
| 5,437 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestValueAIValueFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestValueAI:1.0
//
/***/
public interface TestValueAIValueFactory extends org.omg.CORBA.portable.ValueFactory
{
TestValueAI
create(int l);
}
| 5,438 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestStringBoxHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestStringBox:1.0
//
final public class TestStringBoxHelper implements org.omg.CORBA.portable.BoxedValueHelper
{
private static final TestStringBoxHelper _instance = new TestStringBoxHelper();
public static void
insert(org.omg.CORBA.Any any, String val)
{
any.insert_Value((java.io.Serializable)val, type());
}
public static String
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof String)
return (String)_ob_v;
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_value_box_tc(id(), "TestStringBox", orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string));
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestStringBox:1.0";
}
public static String
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (String)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(_instance);
}
public static void
write(org.omg.CORBA.portable.OutputStream out, String val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_value((java.io.Serializable)val, _instance);
}
public java.io.Serializable
read_value(org.omg.CORBA.portable.InputStream in)
{
String _ob_v;
_ob_v = in.read_string();
return (java.io.Serializable)_ob_v;
}
public void
write_value(org.omg.CORBA.portable.OutputStream out, java.io.Serializable val)
{
if(!(val instanceof String))
throw new org.omg.CORBA.MARSHAL();
String _ob_value = (String)val;
out.write_string(_ob_value);
}
public String
get_id()
{
return id();
}
}
| 5,439 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBV.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestOBV:1.0
//
/***/
public interface TestOBV extends TestOBVOperations,
org.omg.CORBA.Object,
org.omg.CORBA.portable.IDLEntity
{
}
| 5,440 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestInterfacePOA.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestInterface:1.0
//
public abstract class TestInterfacePOA
extends org.omg.PortableServer.Servant
implements org.omg.CORBA.portable.InvokeHandler,
TestInterfaceOperations
{
static final String[] _ob_ids_ =
{
"IDL:TestInterface:1.0",
};
public TestInterface
_this()
{
return TestInterfaceHelper.narrow(super._this_object());
}
public TestInterface
_this(org.omg.CORBA.ORB orb)
{
return TestInterfaceHelper.narrow(super._this_object(orb));
}
public String[]
_all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId)
{
return _ob_ids_;
}
public org.omg.CORBA.portable.OutputStream
_invoke(String opName,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
final String[] _ob_names =
{
"get_count"
};
int _ob_left = 0;
int _ob_right = _ob_names.length;
int _ob_index = -1;
while(_ob_left < _ob_right)
{
int _ob_m = (_ob_left + _ob_right) / 2;
int _ob_res = _ob_names[_ob_m].compareTo(opName);
if(_ob_res == 0)
{
_ob_index = _ob_m;
break;
}
else if(_ob_res > 0)
_ob_right = _ob_m;
else
_ob_left = _ob_m + 1;
}
if(_ob_index == -1 && opName.charAt(0) == '_')
{
_ob_left = 0;
_ob_right = _ob_names.length;
String _ob_ami_op =
opName.substring(1);
while(_ob_left < _ob_right)
{
int _ob_m = (_ob_left + _ob_right) / 2;
int _ob_res = _ob_names[_ob_m].compareTo(_ob_ami_op);
if(_ob_res == 0)
{
_ob_index = _ob_m;
break;
}
else if(_ob_res > 0)
_ob_right = _ob_m;
else
_ob_left = _ob_m + 1;
}
}
switch(_ob_index)
{
case 0: // get_count
return _OB_op_get_count(in, handler);
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private org.omg.CORBA.portable.OutputStream
_OB_op_get_count(org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler handler)
{
org.omg.CORBA.portable.OutputStream out = null;
int _ob_r = get_count();
out = handler.createReply();
out.write_long(_ob_r);
return out;
}
}
| 5,441 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestVarUnionHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestVarUnion:1.0
//
final public class TestVarUnionHelper
{
public static void
insert(org.omg.CORBA.Any any, TestVarUnion val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestVarUnion
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
members[0] = new org.omg.CORBA.UnionMember();
members[0].name = "s";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string);
members[0].label = orb.create_any();
members[0].label.insert_long((int)(0L));
members[1] = new org.omg.CORBA.UnionMember();
members[1].name = "fs";
members[1].type = TestFixStructHelper.type();
members[1].label = orb.create_any();
members[1].label.insert_long((int)(9L));
org.omg.CORBA.TypeCode discType = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
typeCode_ = orb.create_union_tc(id(), "TestVarUnion", discType, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestVarUnion:1.0";
}
public static TestVarUnion
read(org.omg.CORBA.portable.InputStream in)
{
TestVarUnion _ob_v = new TestVarUnion();
int _ob_d;
_ob_d = in.read_long();
switch(_ob_d)
{
case 0:
{
String _ob_m;
_ob_m = in.read_string();
_ob_v.s(_ob_m);
break;
}
case 9:
{
TestFixStruct _ob_m;
_ob_m = TestFixStructHelper.read(in);
_ob_v.fs(_ob_m);
break;
}
default:
_ob_v.__default(_ob_d);
break;
}
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestVarUnion val)
{
int _ob_d = val.discriminator();
out.write_long(_ob_d);
switch(_ob_d)
{
case 0:
{
String _ob_m = val.s();
out.write_string(_ob_m);
break;
}
case 9:
{
TestFixStruct _ob_m = val.fs();
TestFixStructHelper.write(out, _ob_m);
break;
}
default:
break;
}
}
}
| 5,442 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbstractHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstract:1.0
//
final public class TestAbstractHelper
{
public static void
insert(org.omg.CORBA.Any any, TestAbstract val)
{
if(val instanceof org.omg.CORBA.Object)
any.insert_Object((org.omg.CORBA.Object)val, type());
else
any.insert_Value((java.io.Serializable)val, type());
}
public static TestAbstract
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
{
try
{
return narrow(any.extract_Object());
}
catch(org.omg.CORBA.BAD_OPERATION ex)
{
java.io.Serializable _ob_v = any.extract_Value();
if(_ob_v == null || _ob_v instanceof TestAbstract)
return (TestAbstract)_ob_v;
}
}
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_abstract_interface_tc(id(), "TestAbstract");
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestAbstract:1.0";
}
public static TestAbstract
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
java.lang.Object _ob_v = ((org.omg.CORBA_2_3.portable.InputStream)in).read_abstract_interface();
return narrow(_ob_v);
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestAbstract val)
{
if(!(out instanceof org.omg.CORBA_2_3.portable.OutputStream))
throw new org.omg.CORBA.BAD_PARAM();
((org.omg.CORBA_2_3.portable.OutputStream)out).write_abstract_interface(val);
}
public static TestAbstract
narrow(java.lang.Object val)
{
if(val != null)
{
try
{
return (TestAbstract)val;
}
catch(ClassCastException ex)
{
}
if(val instanceof org.omg.CORBA.Object)
{
org.omg.CORBA.Object _ob_o = (org.omg.CORBA.Object)val;
if(_ob_o._is_a(id()))
{
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_TestAbstractStub _ob_stub = new _TestAbstractStub();
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)_ob_o;
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
}
throw new org.omg.CORBA.BAD_PARAM();
}
return null;
}
public static TestAbstract
unchecked_narrow(java.lang.Object val)
{
if(val != null)
{
try
{
return (TestAbstract)val;
}
catch(ClassCastException ex)
{
}
if(val instanceof org.omg.CORBA.Object)
{
org.omg.CORBA.Object _ob_o = (org.omg.CORBA.Object)val;
org.omg.CORBA.portable.ObjectImpl _ob_impl;
_TestAbstractStub _ob_stub = new _TestAbstractStub();
_ob_impl = (org.omg.CORBA.portable.ObjectImpl)_ob_o;
_ob_stub._set_delegate(_ob_impl._get_delegate());
return _ob_stub;
}
throw new org.omg.CORBA.BAD_PARAM();
}
return null;
}
}
| 5,443 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestInterfaceOperations.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestInterface:1.0
//
/***/
public interface TestInterfaceOperations
{
//
// IDL:TestInterface/get_count:1.0
//
/***/
int
get_count();
}
| 5,444 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestVarUnionHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestVarUnion:1.0
//
final public class TestVarUnionHolder implements org.omg.CORBA.portable.Streamable
{
public TestVarUnion value;
public
TestVarUnionHolder()
{
}
public
TestVarUnionHolder(TestVarUnion initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestVarUnionHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestVarUnionHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestVarUnionHelper.type();
}
}
| 5,445 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestAbstractHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestAbstract:1.0
//
final public class TestAbstractHolder implements org.omg.CORBA.portable.Streamable
{
public TestAbstract value;
public
TestAbstractHolder()
{
}
public
TestAbstractHolder(TestAbstract initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestAbstractHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestAbstractHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestAbstractHelper.type();
}
}
| 5,446 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestULongBox.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestULongBox:1.0
//
/***/
public class TestULongBox implements org.omg.CORBA.portable.ValueBase
{
public int value;
public TestULongBox(int initial)
{
value = initial;
}
private static String[] _OB_truncatableIds_ =
{
TestULongBoxHelper.id()
};
public String[]
_truncatable_ids()
{
return _OB_truncatableIds_;
}
}
| 5,447 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBV_impl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
import static org.junit.Assert.assertTrue;
public class TestOBV_impl extends TestOBVPOA {
private org.omg.CORBA.ORB orb_;
private TestValue value_;
private TestValueSub valueSub_;
private TestCustom custom_;
private TestNode node_;
private TestAbstract absInterface_;
private TestAbstract absValue_;
private TestValueInterface valueInterface_;
private TestInterfacePOATie valueInterfaceTie_; // Java only
private void TEST(boolean b) {
assertTrue(b);
}
public TestOBV_impl(org.omg.CORBA.ORB orb,
TestValueValueFactory valueFactory,
TestValueSubValueFactory valueSubFactory,
TestCustomValueFactory customFactory,
TestNodeValueFactory nodeFactory, TestAbstract absInterface,
TestAbstract absValue,
TestValueInterfaceValueFactory valueInterfaceFactory) {
orb_ = orb;
value_ = valueFactory.create(500);
valueSub_ = valueSubFactory.create_sub(501, "ValueSub");
custom_ = customFactory.create((short) -99, -123456, "CustomVal",
100.997);
TestNode left, right, ltmp, rtmp;
ltmp = nodeFactory.create(2);
rtmp = nodeFactory.create(1);
left = nodeFactory.create_lr(3, ltmp, rtmp);
ltmp = nodeFactory.create(5);
right = nodeFactory.create_lr(6, ltmp, null);
node_ = nodeFactory.create_lr(10, left, right);
absInterface_ = absInterface;
absValue_ = absValue;
valueInterface_ = valueInterfaceFactory.create(99);
// Java only
valueInterfaceTie_ = new TestInterfacePOATie(valueInterface_);
valueInterfaceTie_._this(orb);
}
public java.io.Serializable get_null_valuebase() {
return null;
}
public void set_null_valuebase(java.io.Serializable v) {
TEST(v == null);
}
public TestValueSub get_null_valuesub() {
return null;
}
public void set_null_valuesub(TestValueSub v) {
TEST(v == null);
}
public TestAbsValue1 get_abs_value1() {
return value_;
}
public void set_abs_value1(TestAbsValue1 v) {
TEST(v != null);
TestValue value = (TestValue) v;
value.ping1();
TEST(value.count == value_.count);
}
public TestAbsValue2 get_abs_value2() {
return valueSub_;
}
public void set_abs_value2(TestAbsValue2 v) {
TEST(v != null);
TestValueSub value = (TestValueSub) v;
value.ping1();
value.ping2();
TEST(value.count == valueSub_.count);
TEST(value.name.equals(valueSub_.name));
}
public TestValue get_value() {
return value_;
}
public void set_value(TestValue v) {
TEST(v != null);
v.ping1();
TEST(v.count == value_.count);
}
public TestValueSub get_valuesub() {
return valueSub_;
}
public void set_valuesub(TestValueSub v) {
TEST(v != null);
v.ping1();
v.ping2();
TEST(v.count == valueSub_.count);
TEST(v.name.equals(valueSub_.name));
}
public TestValue get_valuesub_as_value() {
return valueSub_;
}
public void set_valuesub_as_value(TestValue v) {
TEST(v != null);
TestValueSub value = (TestValueSub) v;
value.ping1();
value.ping2();
TEST(value.count == valueSub_.count);
TEST(value.name.equals(valueSub_.name));
}
public void get_two_values(TestValueHolder v1, TestValueHolder v2) {
v1.value = value_;
v2.value = value_;
}
public void set_two_values(TestValue v1, TestValue v2) {
TEST(v1 != null);
TEST(v2 != null);
TEST(v1 == v2);
v1.ping1();
v2.ping1();
TEST(v1.count == value_.count);
}
public void get_two_valuesubs_as_values(TestValueHolder v1,
TestValueHolder v2) {
org.omg.CORBA_2_3.ORB orb_2_3 = (org.omg.CORBA_2_3.ORB) orb_;
TestValueSubValueFactory subFactory = (TestValueSubValueFactory) orb_2_3
.lookup_value_factory(TestValueSubHelper.id());
TEST(subFactory != null);
v1.value = subFactory.create_sub(999, "ValueSub");
v2.value = subFactory.create_sub(999, "ValueSub");
}
public void set_two_valuesubs_as_values(TestValue v1, TestValue v2) {
TEST(v1 != null);
TEST(v2 != null);
v1.ping1();
v2.ping1();
TEST(v1.count == v2.count);
TestValueSub s1 = (TestValueSub) v1;
s1.ping2();
TestValueSub s2 = (TestValueSub) v2;
s2.ping2();
TEST(s1.name.equals(s2.name));
}
public TestCustom get_custom() {
return custom_;
}
public void set_custom(TestCustom v) {
TEST(v != null);
v.ping1();
TEST(v.shortVal == custom_.shortVal);
TEST(v.longVal == custom_.longVal);
TEST(v.doubleVal == custom_.doubleVal);
TEST(v.stringVal.equals(custom_.stringVal));
}
public TestAbsValue1 get_abs_custom() {
return custom_;
}
public void set_abs_custom(TestAbsValue1 v) {
TEST(v != null);
v.ping1();
TestCustom c = (TestCustom) v;
TEST(c.shortVal == custom_.shortVal);
TEST(c.longVal == custom_.longVal);
TEST(c.doubleVal == custom_.doubleVal);
TEST(c.stringVal.equals(custom_.stringVal));
}
public void get_node(TestNodeHolder n, org.omg.CORBA.IntHolder count) {
n.value = node_;
count.value = node_.compute_count();
}
public void set_node(TestNode v) {
TEST(v != null);
TEST(v.compute_count() == node_.compute_count());
}
public String get_string_box(String value) {
return value;
}
public void set_string_box(String b, String value) {
TEST(b != null);
TEST(b.equals(value));
}
public TestULongBox get_ulong_box(int value) {
return new TestULongBox(value);
}
public void set_ulong_box(TestULongBox b, int value) {
TEST(b != null);
TEST(b.value == value);
}
public TestFixStruct get_fix_struct_box(TestFixStruct value) {
return value;
}
public void set_fix_struct_box(TestFixStruct b, TestFixStruct value) {
TEST(b != null);
TEST(b.x == value.x);
TEST(b.y == value.y);
TEST(b.radius == value.radius);
}
public TestVarStruct get_var_struct_box(TestVarStruct value) {
return value;
}
public void set_var_struct_box(TestVarStruct b, TestVarStruct value) {
TEST(b != null);
TEST(b.name.equals(value.name));
TEST(b.email.equals(value.email));
}
public TestFixUnion get_fix_union_box(TestFixUnion value) {
return value;
}
public void set_fix_union_box(TestFixUnion b, TestFixUnion value) {
TEST(b != null);
if (value.discriminator())
TEST(b.o() == value.o());
else
TEST(b.d() == value.d());
}
public TestVarUnion get_var_union_box(TestVarUnion value) {
return value;
}
public void set_var_union_box(TestVarUnion b, TestVarUnion value) {
TEST(b != null);
switch (value.discriminator()) {
case 0:
TEST(b.s().equals(value.s()));
break;
case 9: {
TestFixStruct fs1 = b.fs();
TestFixStruct fs2 = value.fs();
TEST(fs1.x == fs2.x);
TEST(fs1.y == fs2.y);
TEST(fs1.radius == fs2.radius);
break;
}
}
}
public short[] get_anon_seq_box(int length) {
short[] result = new short[length];
for (int i = 0; i < length; i++)
result[i] = (short) i;
return result;
}
public void set_anon_seq_box(short[] b, int length) {
TEST(b != null);
TEST(b.length == length);
for (int i = 0; i < length; i++)
TEST(b[i] == (short) i);
}
public String[] get_string_seq_box(String[] value) {
return value;
}
public void set_string_seq_box(String[] b, String[] value) {
TEST(b != null);
TEST(b.length == value.length);
for (int i = 0; i < b.length; i++)
TEST(b[i].equals(value[i]));
}
public TestAbstract get_ai_interface() {
return absInterface_;
}
public void set_ai_interface(TestAbstract a) {
if (a != null) {
a.abstract_op();
TestAbstractSub sub = TestAbstractSubHelper.narrow(a);
sub.sub_op();
}
}
public org.omg.CORBA.Any get_ai_interface_any() {
org.omg.CORBA.Any result = orb_.create_any();
TestAbstractHelper.insert(result, absInterface_);
//
// Test local any extraction
//
TestAbstract ab = TestAbstractHelper.extract(result);
ab.abstract_op();
TestAbstractSub sub = TestAbstractSubHelper.narrow(ab);
sub.sub_op();
return result;
}
public void set_ai_interface_any(org.omg.CORBA.Any any) {
//
// Test remote any extraction
//
org.omg.CORBA.Object obj = any.extract_Object();
TestAbstractSub sub = TestAbstractSubHelper.narrow(obj);
sub.abstract_op();
sub.sub_op();
}
public TestAbstract get_ai_value() {
return absValue_;
}
public void set_ai_value(TestAbstract a) {
if (a != null) {
a.abstract_op();
java.io.Serializable vb = (java.io.Serializable) a;
TestValueAI v = (TestValueAI) a;
v.value_op();
TEST(v.count == 12345);
try {
TestAbstractSub sub = TestAbstractSubHelper.narrow(v);
TEST(false);
} catch (org.omg.CORBA.BAD_PARAM ex) {
// expected
}
}
}
public org.omg.CORBA.Any get_ai_value_any() {
org.omg.CORBA.Any result = orb_.create_any();
TestAbstractHelper.insert(result, absValue_);
//
// Test local any extraction
//
java.io.Serializable vb = result.extract_Value();
TestAbstract ab = (TestAbstract) vb;
ab.abstract_op();
TestValueAI val = (TestValueAI) vb;
val.value_op();
return result;
}
public void set_ai_value_any(org.omg.CORBA.Any a) {
//
// Test remote any extraction
//
java.io.Serializable vb = a.extract_Value();
TestAbstract ab = (TestAbstract) vb;
ab.abstract_op();
TestValueAI val = (TestValueAI) vb;
val.value_op();
}
public TestTruncBase get_trunc1() {
//
// This test addresses several issues:
//
// 1) truncation
// 2) skipping chunks and nested values during truncation
// 3) nested value with repository ID information
//
TestTrunc1 t1 = new TestTrunc1_impl();
t1.cost = (float) 1.993;
t1.boolVal = true;
TestValue v = new TestValue_impl();
v.count = 999;
t1.v = v;
t1.shortVal = (short) 12667;
return t1;
}
public TestTruncBase get_trunc2() {
//
// This test addresses several issues:
//
// 1) truncation - skipping chunks, nested values
// 2) nested values with repository ID information
// 3) cotermination of outer and nested values
// 4) nested truncatable values
// 5) indirection of repository ID information
// 6) value indirection into truncated portion of nested value
// 7) value indirection
//
TestTrunc2 t2 = new TestTrunc2_impl();
t2.cost = (float) 5.993;
TestTrunc1 t1 = new TestTrunc1_impl();
t1.cost = (float) 1.993;
t1.boolVal = true;
TestValue v = new TestValue_impl();
v.count = 999;
t1.v = v;
t1.shortVal = (short) 12667;
t2.t = t1; // issues 2, 4
TestValue v2 = new TestValue_impl();
v2.count = 9999;
t2.a = v2; // issues 2, 5
t2.v = v; // issue 6
t2.b = t1; // issue 7
return t2;
}
public org.omg.CORBA.Any get_value_any() {
TestValue v = get_value();
org.omg.CORBA.Any result = orb_.create_any();
TestValueHelper.insert(result, v);
return result;
}
public org.omg.CORBA.Any get_valuesub_any() {
TestValueSub v = get_valuesub();
org.omg.CORBA.Any result = orb_.create_any();
TestValueSubHelper.insert(result, v);
return result;
}
public org.omg.CORBA.Any get_valuesub_as_value_any() {
//
// Widen TestValueSub to TestValue - the any will contain
// the TypeCode for TestValue
//
TestValue v = get_valuesub();
org.omg.CORBA.Any result = orb_.create_any();
TestValueHelper.insert(result, v);
return result;
}
public org.omg.CORBA.Any get_custom_any() {
TestCustom v = get_custom();
org.omg.CORBA.Any result = orb_.create_any();
TestCustomHelper.insert(result, v);
return result;
}
public org.omg.CORBA.Any get_trunc1_any() {
TestTruncBase v = get_trunc1();
TestTrunc1 t1 = (TestTrunc1) v;
org.omg.CORBA.Any result = orb_.create_any();
TestTrunc1Helper.insert(result, t1);
return result;
}
public org.omg.CORBA.Any get_trunc1_as_base_any() {
//
// Widen TestTrunc1 to TestTruncBase - the any will contain
// the TypeCode for TestTruncBase
//
TestTruncBase v = get_trunc1();
org.omg.CORBA.Any result = orb_.create_any();
TestTruncBaseHelper.insert(result, v);
return result;
}
public org.omg.CORBA.Any get_trunc2_any() {
TestTruncBase v = get_trunc2();
TestTrunc2 t2 = (TestTrunc2) v;
org.omg.CORBA.Any result = orb_.create_any();
TestTrunc2Helper.insert(result, t2);
return result;
}
public org.omg.CORBA.Any get_trunc2_as_base_any() {
//
// Widen TestTrunc2 to TestTruncBase - the any will contain
// the TypeCode for TestTruncBase
//
TestTruncBase v = get_trunc2();
org.omg.CORBA.Any result = orb_.create_any();
TestTruncBaseHelper.insert(result, v);
return result;
}
public void remarshal_any(org.omg.CORBA.Any any) {
// nothing to do
}
public void get_two_value_anys(org.omg.CORBA.AnyHolder a1,
org.omg.CORBA.AnyHolder a2) {
TestValue v = get_value();
a1.value = orb_.create_any();
TestValueHelper.insert(a1.value, v);
a2.value = orb_.create_any();
TestValueHelper.insert(a2.value, v);
}
public void set_two_value_anys(org.omg.CORBA.Any a1, org.omg.CORBA.Any a2) {
TestValue v1 = TestValueHelper.extract(a1);
TestValue v2 = TestValueHelper.extract(a2);
TEST(v1 != null);
TEST(v2 != null);
TEST(v1 == v2);
}
public TestValueInterface get_value_as_value() {
return valueInterface_;
}
public TestInterface get_value_as_interface() {
return valueInterfaceTie_._this();
}
public void deactivate() {
orb_.shutdown(false);
}
}
| 5,448 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestStringBoxHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestStringBox:1.0
//
final public class TestStringBoxHolder implements org.omg.CORBA.portable.Streamable
{
public String value;
public
TestStringBoxHolder()
{
}
public
TestStringBoxHolder(String initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestStringBoxHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestStringBoxHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestStringBoxHelper.type();
}
}
| 5,449 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestStringSeqBoxHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestStringSeqBox:1.0
//
final public class TestStringSeqBoxHolder implements org.omg.CORBA.portable.Streamable
{
public String[] value;
public
TestStringSeqBoxHolder()
{
}
public
TestStringSeqBoxHolder(String[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestStringSeqBoxHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestStringSeqBoxHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestStringSeqBoxHelper.type();
}
}
| 5,450 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestNode.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv;
//
// IDL:TestNode:1.0
//
/***/
public abstract class TestNode implements org.omg.CORBA.portable.StreamableValue
{
//
// IDL:TestNode/left:1.0
//
/***/
public TestNode left;
//
// IDL:TestNode/right:1.0
//
/***/
public TestNode right;
//
// IDL:TestNode/count:1.0
//
/***/
protected int count;
//
// IDL:TestNode/compute_count:1.0
//
/***/
public abstract int
compute_count();
private static String[] _OB_truncatableIds_ =
{
TestNodeHelper.id()
};
public String[]
_truncatable_ids()
{
return _OB_truncatableIds_;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
left = TestNodeHelper.read(in);
right = TestNodeHelper.read(in);
count = in.read_ulong();
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestNodeHelper.write(out, left);
TestNodeHelper.write(out, right);
out.write_ulong(count);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestNodeHelper.type();
}
}
| 5,451 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoPackage/SVHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv.TestOBVColoPackage;
//
// IDL:TestOBVColo/SV:1.0
//
final public class SVHelper
{
public static void
insert(org.omg.CORBA.Any any, SV val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static SV
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[2];
members[0] = new org.omg.CORBA.StructMember();
members[0].name = "str";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string);
members[1] = new org.omg.CORBA.StructMember();
members[1].name = "val";
members[1].type = test.obv.TestValueHelper.type();
typeCode_ = orb.create_struct_tc(id(), "SV", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestOBVColo/SV:1.0";
}
public static SV
read(org.omg.CORBA.portable.InputStream in)
{
SV _ob_v = new SV();
_ob_v.str = in.read_string();
_ob_v.val = test.obv.TestValueHelper.read(in);
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, SV val)
{
out.write_string(val.str);
test.obv.TestValueHelper.write(out, val.val);
}
}
| 5,452 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoPackage/SV.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv.TestOBVColoPackage;
//
// IDL:TestOBVColo/SV:1.0
//
/***/
final public class SV implements org.omg.CORBA.portable.IDLEntity
{
private static final String _ob_id = "IDL:TestOBVColo/SV:1.0";
public
SV()
{
}
public
SV(String str,
test.obv.TestValue val)
{
this.str = str;
this.val = val;
}
public String str;
public test.obv.TestValue val;
}
| 5,453 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoPackage/SVHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv.TestOBVColoPackage;
//
// IDL:TestOBVColo/SV:1.0
//
final public class SVHolder implements org.omg.CORBA.portable.Streamable
{
public SV value;
public
SVHolder()
{
}
public
SVHolder(SV initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = SVHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
SVHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return SVHelper.type();
}
}
| 5,454 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoPackage/UV.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv.TestOBVColoPackage;
//
// IDL:TestOBVColo/UV:1.0
//
/***/
final public class UV implements org.omg.CORBA.portable.IDLEntity
{
java.lang.Object _ob_v_;
boolean _ob_i_;
int _ob_d_;
static boolean
_OB_check(int d0, int d1)
{
return d0 == d1;
}
public
UV()
{
_ob_i_ = false;
}
public boolean
discriminator()
{
if(!_ob_i_)
throw new org.omg.CORBA.BAD_OPERATION();
return _ob_d_ == 0 ? false : true;
}
public String
str()
{
if(!_ob_i_)
throw new org.omg.CORBA.BAD_OPERATION();
if(!_OB_check(_ob_d_, 1))
throw new org.omg.CORBA.BAD_OPERATION();
return (String)_ob_v_;
}
public void
str(String val)
{
_ob_i_ = true;
_ob_d_ = 1;
_ob_v_ = val;
}
public test.obv.TestValue
val()
{
if(!_ob_i_)
throw new org.omg.CORBA.BAD_OPERATION();
if(!_OB_check(_ob_d_, 0))
throw new org.omg.CORBA.BAD_OPERATION();
return (test.obv.TestValue)_ob_v_;
}
public void
val(test.obv.TestValue val)
{
_ob_i_ = true;
_ob_d_ = 0;
_ob_v_ = val;
}
}
| 5,455 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoPackage/UVHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv.TestOBVColoPackage;
//
// IDL:TestOBVColo/UV:1.0
//
final public class UVHelper
{
public static void
insert(org.omg.CORBA.Any any, UV val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static UV
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[2];
members[0] = new org.omg.CORBA.UnionMember();
members[0].name = "str";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string);
members[0].label = orb.create_any();
members[0].label.insert_boolean(true);
members[1] = new org.omg.CORBA.UnionMember();
members[1].name = "val";
members[1].type = test.obv.TestValueHelper.type();
members[1].label = orb.create_any();
members[1].label.insert_boolean(false);
org.omg.CORBA.TypeCode discType = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_boolean);
typeCode_ = orb.create_union_tc(id(), "UV", discType, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestOBVColo/UV:1.0";
}
public static UV
read(org.omg.CORBA.portable.InputStream in)
{
UV _ob_v = new UV();
boolean _ob_d;
_ob_d = in.read_boolean();
switch(_ob_d ? 1 : 0)
{
case 1:
{
String _ob_m;
_ob_m = in.read_string();
_ob_v.str(_ob_m);
break;
}
case 0:
{
test.obv.TestValue _ob_m;
_ob_m = test.obv.TestValueHelper.read(in);
_ob_v.val(_ob_m);
break;
}
}
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, UV val)
{
boolean _ob_d = val.discriminator();
out.write_boolean(_ob_d);
switch(_ob_d ? 1 : 0)
{
case 1:
{
String _ob_m = val.str();
out.write_string(_ob_m);
break;
}
case 0:
{
test.obv.TestValue _ob_m = val.val();
test.obv.TestValueHelper.write(out, _ob_m);
break;
}
}
}
}
| 5,456 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoPackage/VSeqHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv.TestOBVColoPackage;
//
// IDL:TestOBVColo/VSeq:1.0
//
final public class VSeqHolder implements org.omg.CORBA.portable.Streamable
{
public test.obv.TestValue[] value;
public
VSeqHolder()
{
}
public
VSeqHolder(test.obv.TestValue[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = VSeqHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
VSeqHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return VSeqHelper.type();
}
}
| 5,457 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoPackage/UVHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv.TestOBVColoPackage;
//
// IDL:TestOBVColo/UV:1.0
//
final public class UVHolder implements org.omg.CORBA.portable.Streamable
{
public UV value;
public
UVHolder()
{
}
public
UVHolder(UV initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = UVHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
UVHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return UVHelper.type();
}
}
| 5,458 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/obv/TestOBVColoPackage/VSeqHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.obv.TestOBVColoPackage;
//
// IDL:TestOBVColo/VSeq:1.0
//
final public class VSeqHelper
{
public static void
insert(org.omg.CORBA.Any any, test.obv.TestValue[] val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static test.obv.TestValue[]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "VSeq", orb.create_sequence_tc(0, test.obv.TestValueHelper.type()));
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestOBVColo/VSeq:1.0";
}
public static test.obv.TestValue[]
read(org.omg.CORBA.portable.InputStream in)
{
test.obv.TestValue[] _ob_v;
int len0 = in.read_ulong();
_ob_v = new test.obv.TestValue[len0];
for(int i0 = 0; i0 < len0; i0++)
_ob_v[i0] = test.obv.TestValueHelper.read(in);
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, test.obv.TestValue[] val)
{
int len0 = val.length;
out.write_ulong(len0);
for(int i0 = 0; i0 < len0; i0++)
test.obv.TestValueHelper.write(out, val[i0]);
}
}
| 5,459 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/Double10Seq10SeqHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:Double10Seq10Seq:1.0
//
final public class Double10Seq10SeqHolder implements org.omg.CORBA.portable.Streamable
{
public double[][] value;
public
Double10Seq10SeqHolder()
{
}
public
Double10Seq10SeqHolder(double[][] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = Double10Seq10SeqHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
Double10Seq10SeqHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return Double10Seq10SeqHelper.type();
}
}
| 5,460 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/ConstULong.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:ConstULong:1.0
//
/***/
public interface ConstULong
{
int value = (int)(60L);
}
| 5,461 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct2SeqHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct2Seq:1.0
//
final public class TestStruct2SeqHelper
{
public static void
insert(org.omg.CORBA.Any any, TestStruct2[] val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestStruct2[]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "TestStruct2Seq", orb.create_sequence_tc(0, TestStruct2Helper.type()));
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestStruct2Seq:1.0";
}
public static TestStruct2[]
read(org.omg.CORBA.portable.InputStream in)
{
TestStruct2[] _ob_v;
int len0 = in.read_ulong();
_ob_v = new TestStruct2[len0];
for(int i0 = 0; i0 < len0; i0++)
_ob_v[i0] = TestStruct2Helper.read(in);
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestStruct2[] val)
{
int len0 = val.length;
out.write_ulong(len0);
for(int i0 = 0; i0 < len0; i0++)
TestStruct2Helper.write(out, val[i0]);
}
}
| 5,462 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct120SeqHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct120Seq:1.0
//
final public class TestStruct120SeqHolder implements org.omg.CORBA.portable.Streamable
{
public TestStruct1[] value;
public
TestStruct120SeqHolder()
{
}
public
TestStruct120SeqHolder(TestStruct1[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestStruct120SeqHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestStruct120SeqHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestStruct120SeqHelper.type();
}
}
| 5,463 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct120SeqHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct120Seq:1.0
//
final public class TestStruct120SeqHelper
{
public static void
insert(org.omg.CORBA.Any any, TestStruct1[] val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestStruct1[]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "TestStruct120Seq", orb.create_sequence_tc(20, TestStruct1Helper.type()));
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestStruct120Seq:1.0";
}
public static TestStruct1[]
read(org.omg.CORBA.portable.InputStream in)
{
TestStruct1[] _ob_v;
int len0 = in.read_ulong();
_ob_v = new TestStruct1[len0];
for(int i0 = 0; i0 < len0; i0++)
_ob_v[i0] = TestStruct1Helper.read(in);
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestStruct1[] val)
{
int len0 = val.length;
if(len0 > 20)
throw new org.omg.CORBA.MARSHAL();
out.write_ulong(len0);
for(int i0 = 0; i0 < len0; i0++)
TestStruct1Helper.write(out, val[i0]);
}
}
| 5,464 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/ConstEnum.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:ConstEnum:1.0
//
/***/
public interface ConstEnum
{
Measurement value = Measurement.FURLONGS;
}
| 5,465 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/BoundedStringHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:BoundedString:1.0
//
final public class BoundedStringHelper
{
public static void
insert(org.omg.CORBA.Any any, String val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static String
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "BoundedString", orb.create_string_tc(10));
}
return typeCode_;
}
public static String
id()
{
return "IDL:BoundedString:1.0";
}
public static String
read(org.omg.CORBA.portable.InputStream in)
{
String _ob_v;
_ob_v = in.read_string();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, String val)
{
out.write_string(val);
}
}
| 5,466 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/ConstBoolean.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:ConstBoolean:1.0
//
/***/
public interface ConstBoolean
{
boolean value = true;
}
| 5,467 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/Double10Seq10SeqHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:Double10Seq10Seq:1.0
//
final public class Double10Seq10SeqHelper
{
public static void
insert(org.omg.CORBA.Any any, double[][] val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static double[][]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "Double10Seq10Seq", orb.create_sequence_tc(10, Double10SeqHelper.type()));
}
return typeCode_;
}
public static String
id()
{
return "IDL:Double10Seq10Seq:1.0";
}
public static double[][]
read(org.omg.CORBA.portable.InputStream in)
{
double[][] _ob_v;
int len0 = in.read_ulong();
_ob_v = new double[len0][];
for(int i0 = 0; i0 < len0; i0++)
{
_ob_v[i0] = Double10SeqHelper.read(in);
}
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, double[][] val)
{
int len0 = val.length;
if(len0 > 10)
throw new org.omg.CORBA.MARSHAL();
out.write_ulong(len0);
for(int i0 = 0; i0 < len0; i0++)
{
Double10SeqHelper.write(out, val[i0]);
}
}
}
| 5,468 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct2SeqHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct2Seq:1.0
//
final public class TestStruct2SeqHolder implements org.omg.CORBA.portable.Streamable
{
public TestStruct2[] value;
public
TestStruct2SeqHolder()
{
}
public
TestStruct2SeqHolder(TestStruct2[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestStruct2SeqHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestStruct2SeqHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestStruct2SeqHelper.type();
}
}
| 5,469 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/ConstOctet.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:ConstOctet:1.0
//
/***/
public interface ConstOctet
{
byte value = (byte)(254L);
}
| 5,470 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestUnion2Holder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestUnion2:1.0
//
final public class TestUnion2Holder implements org.omg.CORBA.portable.Streamable
{
public TestUnion2 value;
public
TestUnion2Holder()
{
}
public
TestUnion2Holder(TestUnion2 initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestUnion2Helper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestUnion2Helper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestUnion2Helper.type();
}
}
| 5,471 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestConstInterface.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestConstInterface:1.0
//
/***/
public interface TestConstInterface extends TestConstInterfaceOperations,
org.omg.CORBA.Object,
org.omg.CORBA.portable.IDLEntity
{
//
// IDL:TestConstInterface/ConstLong:1.0
//
/***/
int ConstLong = (int)(61454L);
//
// IDL:TestConstInterface/ConstULong:1.0
//
/***/
int ConstULong = (int)(4294967295L);
//
// IDL:TestConstInterface/ConstChar0:1.0
//
/***/
char ConstChar0 = '\0';
//
// IDL:TestConstInterface/ConstChar1:1.0
//
/***/
char ConstChar1 = 'c';
//
// IDL:TestConstInterface/ConstChar2:1.0
//
/***/
char ConstChar2 = '\n';
//
// IDL:TestConstInterface/ConstChar3:1.0
//
/***/
char ConstChar3 = '\377';
//
// IDL:TestConstInterface/ConstChar4:1.0
//
/***/
char ConstChar4 = '\210';
//
// IDL:TestConstInterface/ConstChar5:1.0
//
/***/
char ConstChar5 = '\'';
//
// IDL:TestConstInterface/ConstWChar:1.0
//
/***/
char ConstWChar = 'Z';
//
// IDL:TestConstInterface/ConstString:1.0
//
/***/
String ConstString = "\n\t\013\b\r\f\007\\?\'\"\377\377\007";
//
// IDL:TestConstInterface/ConstWString:1.0
//
/***/
String ConstWString = "\n\t\013\b\r\f\007\\?\'\"\377\377\007";
//
// IDL:TestConstInterface/ConstEnum:1.0
//
/***/
Measurement ConstEnum = Measurement.FEET;
}
| 5,472 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct3Helper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct3:1.0
//
final public class TestStruct3Helper
{
public static void
insert(org.omg.CORBA.Any any, TestStruct3 val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestStruct3
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[2];
members[0] = new org.omg.CORBA.StructMember();
members[0].name = "l";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
members[1] = new org.omg.CORBA.StructMember();
members[1].name = "seq";
org.omg.CORBA.TypeCode content0;
content0 = orb.create_recursive_tc(id());
members[1].type = orb.create_sequence_tc(0, content0);
typeCode_ = orb.create_struct_tc(id(), "TestStruct3", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestStruct3:1.0";
}
public static TestStruct3
read(org.omg.CORBA.portable.InputStream in)
{
TestStruct3 _ob_v = new TestStruct3();
_ob_v.l = in.read_long();
int len0 = in.read_ulong();
_ob_v.seq = new TestStruct3[len0];
for(int i0 = 0; i0 < len0; i0++)
_ob_v.seq[i0] = TestStruct3Helper.read(in);
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestStruct3 val)
{
out.write_long(val.l);
int len0 = val.seq.length;
out.write_ulong(len0);
for(int i0 = 0; i0 < len0; i0++)
TestStruct3Helper.write(out, val.seq[i0]);
}
}
| 5,473 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestEnumHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestEnum:1.0
//
final public class TestEnumHelper
{
public static void
insert(org.omg.CORBA.Any any, TestEnum val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestEnum
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
String[] members = new String[3];
members[0] = "A";
members[1] = "B";
members[2] = "C";
typeCode_ = orb.create_enum_tc(id(), "TestEnum", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestEnum:1.0";
}
public static TestEnum
read(org.omg.CORBA.portable.InputStream in)
{
TestEnum _ob_v;
_ob_v = TestEnum.from_int(in.read_ulong());
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestEnum val)
{
out.write_ulong(val.value());
}
}
| 5,474 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct1SeqHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct1Seq:1.0
//
final public class TestStruct1SeqHolder implements org.omg.CORBA.portable.Streamable
{
public TestStruct1[] value;
public
TestStruct1SeqHolder()
{
}
public
TestStruct1SeqHolder(TestStruct1[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestStruct1SeqHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestStruct1SeqHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestStruct1SeqHelper.type();
}
}
| 5,475 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct1SeqHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct1Seq:1.0
//
final public class TestStruct1SeqHelper
{
public static void
insert(org.omg.CORBA.Any any, TestStruct1[] val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestStruct1[]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "TestStruct1Seq", orb.create_sequence_tc(0, TestStruct1Helper.type()));
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestStruct1Seq:1.0";
}
public static TestStruct1[]
read(org.omg.CORBA.portable.InputStream in)
{
TestStruct1[] _ob_v;
int len0 = in.read_ulong();
_ob_v = new TestStruct1[len0];
for(int i0 = 0; i0 < len0; i0++)
_ob_v[i0] = TestStruct1Helper.read(in);
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestStruct1[] val)
{
int len0 = val.length;
out.write_ulong(len0);
for(int i0 = 0; i0 < len0; i0++)
TestStruct1Helper.write(out, val[i0]);
}
}
| 5,476 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct3Holder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct3:1.0
//
final public class TestStruct3Holder implements org.omg.CORBA.portable.Streamable
{
public TestStruct3 value;
public
TestStruct3Holder()
{
}
public
TestStruct3Holder(TestStruct3 initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestStruct3Helper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestStruct3Helper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestStruct3Helper.type();
}
}
| 5,477 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestEnumHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestEnum:1.0
//
final public class TestEnumHolder implements org.omg.CORBA.portable.Streamable
{
public TestEnum value;
public
TestEnumHolder()
{
}
public
TestEnumHolder(TestEnum initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestEnumHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestEnumHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestEnumHelper.type();
}
}
| 5,478 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestUnion2Helper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestUnion2:1.0
//
final public class TestUnion2Helper
{
public static void
insert(org.omg.CORBA.Any any, TestUnion2 val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestUnion2
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[3];
members[0] = new org.omg.CORBA.UnionMember();
members[0].name = "seq";
members[0].type = orb.create_sequence_tc(0, orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long));
members[0].label = orb.create_any();
TestEnumHelper.insert(members[0].label, TestEnum.from_int(0));
members[1] = new org.omg.CORBA.UnionMember();
members[1].name = "seq";
members[1].type = orb.create_sequence_tc(0, orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long));
members[1].label = orb.create_any();
TestEnumHelper.insert(members[1].label, TestEnum.from_int(1));
members[2] = new org.omg.CORBA.UnionMember();
members[2].name = "un";
members[2].type = TestUnion1Helper.type();
members[2].label = orb.create_any();
TestEnumHelper.insert(members[2].label, TestEnum.from_int(2));
org.omg.CORBA.TypeCode discType = TestEnumHelper.type();
typeCode_ = orb.create_union_tc(id(), "TestUnion2", discType, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestUnion2:1.0";
}
public static TestUnion2
read(org.omg.CORBA.portable.InputStream in)
{
TestUnion2 _ob_v = new TestUnion2();
TestEnum _ob_d;
_ob_d = TestEnumHelper.read(in);
switch(_ob_d.value())
{
case TestEnum._A:
case TestEnum._B:
{
int[] _ob_m;
int len0 = in.read_ulong();
_ob_m = new int[len0];
in.read_long_array(_ob_m, 0, len0);
_ob_v.seq(_ob_d, _ob_m);
break;
}
case TestEnum._C:
{
TestUnion1 _ob_m;
_ob_m = TestUnion1Helper.read(in);
_ob_v.un(_ob_m);
break;
}
}
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestUnion2 val)
{
TestEnum _ob_d = val.discriminator();
TestEnumHelper.write(out, _ob_d);
switch(_ob_d.value())
{
case TestEnum._A:
case TestEnum._B:
{
int[] _ob_m = val.seq();
int len0 = _ob_m.length;
out.write_ulong(len0);
out.write_long_array(_ob_m, 0, len0);
break;
}
case TestEnum._C:
{
TestUnion1 _ob_m = val.un();
TestUnion1Helper.write(out, _ob_m);
break;
}
}
}
}
| 5,479 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/ConstLongLong.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:ConstLongLong:1.0
//
/***/
public interface ConstLongLong
{
long value = 1522756L;
}
| 5,480 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestEnum30SeqHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestEnum30Seq:1.0
//
final public class TestEnum30SeqHelper
{
public static void
insert(org.omg.CORBA.Any any, TestEnum[] val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestEnum[]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "TestEnum30Seq", orb.create_sequence_tc(30, TestEnumHelper.type()));
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestEnum30Seq:1.0";
}
public static TestEnum[]
read(org.omg.CORBA.portable.InputStream in)
{
TestEnum[] _ob_v;
int len0 = in.read_ulong();
_ob_v = new TestEnum[len0];
for(int i0 = 0; i0 < len0; i0++)
_ob_v[i0] = TestEnumHelper.read(in);
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestEnum[] val)
{
int len0 = val.length;
if(len0 > 30)
throw new org.omg.CORBA.MARSHAL();
out.write_ulong(len0);
for(int i0 = 0; i0 < len0; i0++)
TestEnumHelper.write(out, val[i0]);
}
}
| 5,481 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestEnum.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestEnum:1.0
//
/***/
public class TestEnum implements org.omg.CORBA.portable.IDLEntity
{
private static TestEnum [] values_ = new TestEnum[3];
private int value_;
public final static int _A = 0;
public final static TestEnum A = new TestEnum(_A);
public final static int _B = 1;
public final static TestEnum B = new TestEnum(_B);
public final static int _C = 2;
public final static TestEnum C = new TestEnum(_C);
protected
TestEnum(int value)
{
values_[value] = this;
value_ = value;
}
public int
value()
{
return value_;
}
public static TestEnum
from_int(int value)
{
if(value < values_.length)
return values_[value];
else
throw new org.omg.CORBA.BAD_PARAM("Value (" + value + ") out of range", 25, org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
private java.lang.Object
readResolve()
throws java.io.ObjectStreamException
{
return from_int(value());
}
}
| 5,482 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestUnion5Helper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestUnion5:1.0
//
final public class TestUnion5Helper
{
public static void
insert(org.omg.CORBA.Any any, TestUnion5 val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestUnion5
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.UnionMember[] members = new org.omg.CORBA.UnionMember[4];
members[0] = new org.omg.CORBA.UnionMember();
members[0].name = "f";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string);
members[0].label = orb.create_any();
members[0].label.insert_octet((byte)0);
members[1] = new org.omg.CORBA.UnionMember();
members[1].name = "a";
members[1].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_any);
members[1].label = orb.create_any();
members[1].label.insert_longlong(-42L);
members[2] = new org.omg.CORBA.UnionMember();
members[2].name = "c";
members[2].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_char);
members[2].label = orb.create_any();
members[2].label.insert_longlong(100000L);
members[3] = new org.omg.CORBA.UnionMember();
members[3].name = "c";
members[3].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_char);
members[3].label = orb.create_any();
members[3].label.insert_longlong(50000000L);
org.omg.CORBA.TypeCode discType = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_longlong);
typeCode_ = orb.create_union_tc(id(), "TestUnion5", discType, members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestUnion5:1.0";
}
public static TestUnion5
read(org.omg.CORBA.portable.InputStream in)
{
TestUnion5 _ob_v = new TestUnion5();
long _ob_d;
_ob_d = in.read_longlong();
if(_ob_d == -42L)
{
org.omg.CORBA.Any _ob_m;
_ob_m = in.read_any();
_ob_v.a(_ob_m);
}
else if(_ob_d == 100000L ||
_ob_d == 50000000L)
{
char _ob_m;
_ob_m = in.read_char();
_ob_v.c(_ob_d, _ob_m);
}
else
{
String _ob_m;
_ob_m = in.read_string();
_ob_v.f(_ob_d, _ob_m);
}
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestUnion5 val)
{
long _ob_d = val.discriminator();
out.write_longlong(_ob_d);
if(_ob_d == -42L)
{
org.omg.CORBA.Any _ob_m = val.a();
out.write_any(_ob_m);
}
else if(_ob_d == 100000L ||
_ob_d == 50000000L)
{
char _ob_m = val.c();
out.write_char(_ob_m);
}
else
{
String _ob_m = val.f();
out.write_string(_ob_m);
}
}
}
| 5,483 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/CharSeqHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:CharSeq:1.0
//
final public class CharSeqHelper
{
public static void
insert(org.omg.CORBA.Any any, char[] val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static char[]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "CharSeq", orb.create_sequence_tc(0, orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_char)));
}
return typeCode_;
}
public static String
id()
{
return "IDL:CharSeq:1.0";
}
public static char[]
read(org.omg.CORBA.portable.InputStream in)
{
char[] _ob_v;
int len0 = in.read_ulong();
_ob_v = new char[len0];
in.read_char_array(_ob_v, 0, len0);
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, char[] val)
{
int len0 = val.length;
out.write_ulong(len0);
out.write_char_array(val, 0, len0);
}
}
| 5,484 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct4Holder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct4:1.0
//
final public class TestStruct4Holder implements org.omg.CORBA.portable.Streamable
{
public TestStruct4 value;
public
TestStruct4Holder()
{
}
public
TestStruct4Holder(TestStruct4 initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestStruct4Helper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestStruct4Helper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestStruct4Helper.type();
}
}
| 5,485 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/DoubleArrayHelper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:DoubleArray:1.0
//
final public class DoubleArrayHelper
{
public static void
insert(org.omg.CORBA.Any any, double[][][] val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static double[][][]
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
typeCode_ = orb.create_alias_tc(id(), "DoubleArray", orb.create_array_tc(10, orb.create_array_tc(20, orb.create_array_tc(30, orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_double)))));
}
return typeCode_;
}
public static String
id()
{
return "IDL:DoubleArray:1.0";
}
public static double[][][]
read(org.omg.CORBA.portable.InputStream in)
{
double[][][] _ob_v;
int len0 = 10;
_ob_v = new double[len0][][];
for(int i0 = 0; i0 < len0; i0++)
{
int len1 = 20;
_ob_v[i0] = new double[len1][];
for(int i1 = 0; i1 < len1; i1++)
{
int len2 = 30;
_ob_v[i0][i1] = new double[len2];
in.read_double_array(_ob_v[i0][i1], 0, len2);
}
}
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, double[][][] val)
{
int len0 = val.length;
if(len0 != 10)
throw new org.omg.CORBA.MARSHAL();
for(int i0 = 0; i0 < len0; i0++)
{
int len1 = val[i0].length;
if(len1 != 20)
throw new org.omg.CORBA.MARSHAL();
for(int i1 = 0; i1 < len1; i1++)
{
int len2 = val[i0][i1].length;
if(len2 != 30)
throw new org.omg.CORBA.MARSHAL();
out.write_double_array(val[i0][i1], 0, len2);
}
}
}
}
| 5,486 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct4Helper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct4:1.0
//
final public class TestStruct4Helper
{
public static void
insert(org.omg.CORBA.Any any, TestStruct4 val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestStruct4
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[2];
members[0] = new org.omg.CORBA.StructMember();
members[0].name = "a";
members[0].type = TestStruct3Helper.type();
members[1] = new org.omg.CORBA.StructMember();
members[1].name = "b";
members[1].type = orb.create_sequence_tc(0, TestStruct3Helper.type());
typeCode_ = orb.create_struct_tc(id(), "TestStruct4", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestStruct4:1.0";
}
public static TestStruct4
read(org.omg.CORBA.portable.InputStream in)
{
TestStruct4 _ob_v = new TestStruct4();
_ob_v.a = TestStruct3Helper.read(in);
int len0 = in.read_ulong();
_ob_v.b = new TestStruct3[len0];
for(int i0 = 0; i0 < len0; i0++)
_ob_v.b[i0] = TestStruct3Helper.read(in);
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestStruct4 val)
{
TestStruct3Helper.write(out, val.a);
int len0 = val.b.length;
out.write_ulong(len0);
for(int i0 = 0; i0 < len0; i0++)
TestStruct3Helper.write(out, val.b[i0]);
}
}
| 5,487 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/DoubleArrayHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:DoubleArray:1.0
//
final public class DoubleArrayHolder implements org.omg.CORBA.portable.Streamable
{
public double[][][] value;
public
DoubleArrayHolder()
{
}
public
DoubleArrayHolder(double[][][] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = DoubleArrayHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
DoubleArrayHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return DoubleArrayHelper.type();
}
}
| 5,488 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/ConstLongLongMin.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:ConstLongLongMin:1.0
//
/***/
public interface ConstLongLongMin
{
long value = -9223372036854775808L;
}
| 5,489 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/CharSeqHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:CharSeq:1.0
//
final public class CharSeqHolder implements org.omg.CORBA.portable.Streamable
{
public char[] value;
public
CharSeqHolder()
{
}
public
CharSeqHolder(char[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = CharSeqHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
CharSeqHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return CharSeqHelper.type();
}
}
| 5,490 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestEnum30SeqHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestEnum30Seq:1.0
//
final public class TestEnum30SeqHolder implements org.omg.CORBA.portable.Streamable
{
public TestEnum[] value;
public
TestEnum30SeqHolder()
{
}
public
TestEnum30SeqHolder(TestEnum[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestEnum30SeqHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestEnum30SeqHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestEnum30SeqHelper.type();
}
}
| 5,491 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestUnion5Holder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestUnion5:1.0
//
final public class TestUnion5Holder implements org.omg.CORBA.portable.Streamable
{
public TestUnion5 value;
public
TestUnion5Holder()
{
}
public
TestUnion5Holder(TestUnion5 initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestUnion5Helper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestUnion5Helper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestUnion5Helper.type();
}
}
| 5,492 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct1Helper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct1:1.0
//
final public class TestStruct1Helper
{
public static void
insert(org.omg.CORBA.Any any, TestStruct1 val)
{
org.omg.CORBA.portable.OutputStream out = any.create_output_stream();
write(out, val);
any.read_value(out.create_input_stream(), type());
}
public static TestStruct1
extract(org.omg.CORBA.Any any)
{
if(any.type().equivalent(type()))
return read(any.create_input_stream());
else
throw new org.omg.CORBA.BAD_OPERATION();
}
private static org.omg.CORBA.TypeCode typeCode_;
public static org.omg.CORBA.TypeCode
type()
{
if(typeCode_ == null)
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[7];
members[0] = new org.omg.CORBA.StructMember();
members[0].name = "s";
members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_short);
members[1] = new org.omg.CORBA.StructMember();
members[1].name = "l";
members[1].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long);
members[2] = new org.omg.CORBA.StructMember();
members[2].name = "d";
members[2].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_double);
members[3] = new org.omg.CORBA.StructMember();
members[3].name = "b";
members[3].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_boolean);
members[4] = new org.omg.CORBA.StructMember();
members[4].name = "c";
members[4].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_char);
members[5] = new org.omg.CORBA.StructMember();
members[5].name = "o";
members[5].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_octet);
members[6] = new org.omg.CORBA.StructMember();
members[6].name = "str";
members[6].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string);
typeCode_ = orb.create_struct_tc(id(), "TestStruct1", members);
}
return typeCode_;
}
public static String
id()
{
return "IDL:TestStruct1:1.0";
}
public static TestStruct1
read(org.omg.CORBA.portable.InputStream in)
{
TestStruct1 _ob_v = new TestStruct1();
_ob_v.s = in.read_short();
_ob_v.l = in.read_long();
_ob_v.d = in.read_double();
_ob_v.b = in.read_boolean();
_ob_v.c = in.read_char();
_ob_v.o = in.read_octet();
_ob_v.str = in.read_string();
return _ob_v;
}
public static void
write(org.omg.CORBA.portable.OutputStream out, TestStruct1 val)
{
out.write_short(val.s);
out.write_long(val.l);
out.write_double(val.d);
out.write_boolean(val.b);
out.write_char(val.c);
out.write_octet(val.o);
out.write_string(val.str);
}
}
| 5,493 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/ConstString.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:ConstString:1.0
//
/***/
public interface ConstString
{
String value = "This is ConstString";
}
| 5,494 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/ConstLongLongMax.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:ConstLongLongMax:1.0
//
/***/
public interface ConstLongLongMax
{
long value = 9223372036854775807L;
}
| 5,495 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/String40SeqHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:String40Seq:1.0
//
final public class String40SeqHolder implements org.omg.CORBA.portable.Streamable
{
public String[] value;
public
String40SeqHolder()
{
}
public
String40SeqHolder(String[] initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = String40SeqHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
String40SeqHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return String40SeqHelper.type();
}
}
| 5,496 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestConstInterfaceHolder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestConstInterface:1.0
//
final public class TestConstInterfaceHolder implements org.omg.CORBA.portable.Streamable
{
public TestConstInterface value;
public
TestConstInterfaceHolder()
{
}
public
TestConstInterfaceHolder(TestConstInterface initial)
{
value = initial;
}
public void
_read(org.omg.CORBA.portable.InputStream in)
{
value = TestConstInterfaceHelper.read(in);
}
public void
_write(org.omg.CORBA.portable.OutputStream out)
{
TestConstInterfaceHelper.write(out, value);
}
public org.omg.CORBA.TypeCode
_type()
{
return TestConstInterfaceHelper.type();
}
}
| 5,497 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestStruct1.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
//
// IDL:TestStruct1:1.0
//
/***/
final public class TestStruct1 implements org.omg.CORBA.portable.IDLEntity
{
private static final String _ob_id = "IDL:TestStruct1:1.0";
public
TestStruct1()
{
}
public
TestStruct1(short s,
int l,
double d,
boolean b,
char c,
byte o,
String str)
{
this.s = s;
this.l = l;
this.d = d;
this.b = b;
this.c = c;
this.o = o;
this.str = str;
}
public short s;
public int l;
public double d;
public boolean b;
public char c;
public byte o;
public String str;
}
| 5,498 |
0 | Create_ds/geronimo-yoko/yoko-core/src/test/java/test | Create_ds/geronimo-yoko/yoko-core/src/test/java/test/types/TestUnion.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package test.types;
import static org.junit.Assert.assertTrue;
import java.util.Properties;
import org.omg.CORBA.*;
public class TestUnion extends test.common.TestBase {
TestUnion(ORB orb) {
TestUnion1 u = new TestUnion1();
u.l(123);
assertTrue(u.l() == 123);
assertTrue(u.discriminator() == -1);
u.tc(-6, TestUnion1Helper.type());
assertTrue(u.discriminator() == -6);
assertTrue(u.tc().equal(TestUnion1Helper.type()));
u.tc(4, TestUnion1Helper.type());
assertTrue(u.discriminator() == 4);
assertTrue(u.tc().equal(TestUnion1Helper.type()));
u.tc(999, TestUnion1Helper.type());
assertTrue(u.discriminator() == 999);
assertTrue(u.tc().equal(TestUnion1Helper.type()));
double arr[][][] = new double[10][20][30];
arr[2][2][2] = 3.14;
arr[0][0][0] = 1234;
arr[9][19][29] = 1.23E23;
u.a(arr);
double arr2[][][] = u.a();
assertTrue(arr2[2][2][2] == 3.14);
assertTrue(arr2[0][0][0] == 1234);
assertTrue(arr2[9][19][29] == 1.23E23);
assertTrue(u.discriminator() == -2);
u.s("Hello!");
assertTrue(u.s().equals("Hello!"));
assertTrue(u.discriminator() == -3);
TestStruct2 ts = new TestStruct2();
ts.s = new TestStruct1();
ts.s.s = -32768;
ts.s.l = 2147483647;
ts.s.d = 1E200;
ts.s.b = true;
ts.s.c = 'x';
ts.s.o = (byte) 0xff;
ts.s.str = "abc";
ts.a = orb.create_any();
TestUnion1Helper.insert(ts.a, u);
ts.da = new double[10][20][30];
ts.da[0][0][0] = 1.23;
ts.da[2][3][4] = -1.11;
ts.sa = new String[100];
for (int i = 0; i < 100; i++)
ts.sa[i] = "";
ts.sa[50] = "Hi!";
u.str(0, ts);
assertTrue(u.discriminator() == 0);
u.str(1, ts);
assertTrue(u.discriminator() == 1);
u.str(2, ts);
assertTrue(u.discriminator() == 2);
u.str(3, ts);
assertTrue(u.discriminator() == 3);
u.str(-4, ts);
assertTrue(u.discriminator() == -4);
u.str(-5, ts);
assertTrue(u.discriminator() == -5);
assertTrue(u.str().s.s == -32768);
assertTrue(u.str().s.l == 2147483647);
assertTrue(u.str().s.d == 1E200);
assertTrue(u.str().s.b == true);
assertTrue(u.str().s.c == 'x');
assertTrue(u.str().s.o == (byte) 0xff);
assertTrue(u.str().s.str.equals("abc"));
TestUnion1 u2 = TestUnion1Helper.extract(u.str().a);
assertTrue(u2.s().equals("Hello!"));
assertTrue(u2.discriminator() == -3);
assertTrue(u.str().da[0][0][0] == 1.23);
assertTrue(u.str().da[2][3][4] == -1.11);
assertTrue(u.str().sa[50].equals("Hi!"));
TestUnion2 u3 = new TestUnion2();
u3.un(u);
assertTrue(u3.discriminator() == TestEnum.C);
assertTrue(u3.un().discriminator() == -5);
assertTrue(u3.un().str().s.s == -32768);
assertTrue(u3.un().str().s.l == 2147483647);
assertTrue(u3.un().str().s.d == 1E200);
assertTrue(u3.un().str().s.b == true);
assertTrue(u3.un().str().s.c == 'x');
assertTrue(u3.un().str().s.o == (byte) 0xff);
assertTrue(u3.un().str().s.str.equals("abc"));
TestUnion1 u4 = TestUnion1Helper.extract(u.str().a);
assertTrue(u4.s().equals("Hello!"));
assertTrue(u4.discriminator() == -3);
assertTrue(u3.un().str().da[0][0][0] == 1.23);
assertTrue(u3.un().str().da[2][3][4] == -1.11);
assertTrue(u3.un().str().sa[50].equals("Hi!"));
Any any = orb.create_any();
TestUnion2Helper.insert(any, u3);
TestUnion2 u5 = TestUnion2Helper.extract(any);
assertTrue(u5.discriminator() == TestEnum.C);
assertTrue(u5.un().discriminator() == -5);
assertTrue(u5.un().str().s.s == -32768);
assertTrue(u5.un().str().s.l == 2147483647);
assertTrue(u5.un().str().s.d == 1E200);
assertTrue(u5.un().str().s.b == true);
assertTrue(u5.un().str().s.c == 'x');
assertTrue(u5.un().str().s.o == (byte) 0xff);
assertTrue(u5.un().str().s.str.equals("abc"));
TestUnion1 u6 = TestUnion1Helper.extract(u.str().a);
assertTrue(u6.s().equals("Hello!"));
assertTrue(u6.discriminator() == -3);
assertTrue(u5.un().str().da[0][0][0] == 1.23);
assertTrue(u5.un().str().da[2][3][4] == -1.11);
assertTrue(u5.un().str().sa[50].equals("Hi!"));
TestUnion3 u7 = new TestUnion3();
u7.__default();
u7.c('a', '1');
assertTrue(u7.discriminator() == 'a');
assertTrue(u7.c() == '1');
u7.c('b', '1');
assertTrue(u7.discriminator() == 'b');
assertTrue(u7.c() == '1');
}
public static void main(String args[]) {
java.util.Properties props = new Properties();
props.putAll(System.getProperties());
props.put("org.omg.CORBA.ORBClass", "org.apache.yoko.orb.CORBA.ORB");
props.put("org.omg.CORBA.ORBSingletonClass",
"org.apache.yoko.orb.CORBA.ORBSingleton");
int status = 0;
org.omg.CORBA.ORB orb = null;
try {
//
// Create ORB
//
orb = org.omg.CORBA.ORB.init(args, props);
//
// Run tests
//
System.out.print("Testing some union types... ");
System.out.flush();
new TestUnion(orb);
System.out.println("Done!");
} catch (org.omg.CORBA.SystemException ex) {
ex.printStackTrace();
status = 1;
}
if (orb != null) {
try {
orb.destroy();
} catch (org.omg.CORBA.SystemException ex) {
ex.printStackTrace();
status = 1;
}
}
System.exit(status);
}
}
| 5,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.