API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.omg.CosNaming. _BindingIteratorImplBase View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90

/*
 * @(#)_BindingIteratorImplBase.java	1.17 05/11/17
 *
 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
/*
 * File: ./org/omg/CosNaming/_BindingIteratorImplBase.java
 * From: nameservice.idl
 * Date: Tue Aug 11 03:12:09 1998
 *   By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
 * @deprecated Deprecated in JDK 1.4.
 */

package org.omg.CosNaming;
public abstract class _BindingIteratorImplBase extends org.omg.CORBA.DynamicImplementation implements org.omg.CosNaming.BindingIterator {
    // Constructor
    public _BindingIteratorImplBase() {
	super();
    }
    // Type strings for this class and its superclases
    private static final String _type_ids[] = {
        "IDL:omg.org/CosNaming/BindingIterator:1.0"
    };

    public String[] _ids() { return (String[]) _type_ids.clone(); }

    private static java.util.Dictionary _methods = new java.util.Hashtable();
    static {
	_methods.put("next_one", new java.lang.Integer(0));
	_methods.put("next_n", new java.lang.Integer(1));
	_methods.put("destroy", new java.lang.Integer(2));
    }
    // DSI Dispatch call
    public void invoke(org.omg.CORBA.ServerRequest r) {
	switch (((java.lang.Integer) _methods.get(r.op_name())).intValue()) {
	case 0: // org.omg.CosNaming.BindingIterator.next_one
	    {
		org.omg.CORBA.NVList _list = _orb().create_list(0);
		org.omg.CORBA.Any _b = _orb().create_any();
		_b.type(org.omg.CosNaming.BindingHelper.type());
		_list.add_value("b", _b, org.omg.CORBA.ARG_OUT.value);
		r.params(_list);
		org.omg.CosNaming.BindingHolder b;
		b = new org.omg.CosNaming.BindingHolder();
		boolean ___result;
		___result = this.next_one(b);
		org.omg.CosNaming.BindingHelper.insert(_b, b.value);
		org.omg.CORBA.Any __result = _orb().create_any();
		__result.insert_boolean(___result);
		r.result(__result);
	    }
	    break;
	case 1: // org.omg.CosNaming.BindingIterator.next_n
	    {
		org.omg.CORBA.NVList _list = _orb().create_list(0);
		org.omg.CORBA.Any _how_many = _orb().create_any();
		_how_many.type(org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_ulong));
		_list.add_value("how_many", _how_many, org.omg.CORBA.ARG_IN.value);
		org.omg.CORBA.Any _bl = _orb().create_any();
		_bl.type(org.omg.CosNaming.BindingListHelper.type());
		_list.add_value("bl", _bl, org.omg.CORBA.ARG_OUT.value);
		r.params(_list);
		int how_many;
		how_many = _how_many.extract_ulong();
		org.omg.CosNaming.BindingListHolder bl;
		bl = new org.omg.CosNaming.BindingListHolder();
		boolean ___result;
		___result = this.next_n(how_many, bl);
		org.omg.CosNaming.BindingListHelper.insert(_bl, bl.value);
		org.omg.CORBA.Any __result = _orb().create_any();
		__result.insert_boolean(___result);
		r.result(__result);
	    }
	    break;
	case 2: // org.omg.CosNaming.BindingIterator.destroy
	    {
		org.omg.CORBA.NVList _list = _orb().create_list(0);
		r.params(_list);
		this.destroy();
		org.omg.CORBA.Any __return = _orb().create_any();
		__return.type(_orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_void));
		r.result(__return);
	    }
	    break;
	default:
	    throw new org.omg.CORBA.BAD_OPERATION(0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
	}
    }
}

Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar