public boolean next_one(org.omg.CosNaming.BindingHolder b) { if (iterator_pos < bindings.length) { b.value = bindings[iterator_pos++]; return true; } else { b.value = new Binding(new org.omg.CosNaming.NameComponent[0], org.omg.CosNaming.BindingType.nobject); return false; } } }
result[how_many_ctr - 1] = new Binding((names.next()).components(), BindingType.nobject); result[how_many_ctr - 1] = new Binding((contexts.next()).components(), BindingType.ncontext); Binding[] rest = new Binding[size]; for (; names.hasNext() && size > 0; size--) rest[size - 1] = new Binding((names.next()).components(), BindingType.nobject); rest[size - 1] = new Binding((contexts.next()).components(), BindingType.ncontext); result = new Binding[size]; for (; names.hasNext() && size > 0; size--) result[size - 1] = new Binding((names.next()).components(), BindingType.nobject); result[size - 1] = new Binding((contexts.next()).components(), BindingType.ncontext);
public boolean next_one(org.omg.CosNaming.BindingHolder b) { if (iterator_pos < bindings.length) { b.value = bindings[iterator_pos++]; return true; } else { b.value = new Binding(new org.omg.CosNaming.NameComponent[0], org.omg.CosNaming.BindingType.nobject); return false; } } }
public boolean next_one(org.omg.CosNaming.BindingHolder b) { if (iterator_pos < bindings.length) { b.value = bindings[iterator_pos++]; return true; } else { b.value = new Binding(new org.omg.CosNaming.NameComponent[0], org.omg.CosNaming.BindingType.nobject); return false; } } }
public boolean next_one (org.omg.CosNaming.BindingHolder b) { if (iterator_pos < bindings.length) { b.value = bindings[iterator_pos++]; return true; } else { b.value = new Binding (new org.omg.CosNaming.NameComponent[0], org.omg.CosNaming.BindingType.nobject); return false; } } }
/** * Return the next object in the iteration sequence. * * @param b The BindingHolder used to return the next item. If * we've reached the end of the sequence, an item * with an empty name is returned. * * @return true if there is another item, false otherwise. */ public boolean next_one(org.omg.CosNaming.BindingHolder b) { if (iterator.hasNext()) { // return this as a Binding value. BoundObject obj = (BoundObject)iterator.next(); b.value = new Binding(new NameComponent[] { obj.name }, obj.type); return true; } else { // return an empty element b.value = new Binding(new NameComponent[0], BindingType.nobject); return false; } }
/** * Return the next object in the iteration sequence. * * @param b The BindingHolder used to return the next item. If * we've reached the end of the sequence, an item * with an empty name is returned. * * @return true if there is another item, false otherwise. */ public boolean next_one(org.omg.CosNaming.BindingHolder b) { if (iterator.hasNext()) { // return this as a Binding value. BoundObject obj = (BoundObject)iterator.next(); b.value = new Binding(new NameComponent[] {obj.name}, obj.type); return true; } else { // return an empty element b.value = new Binding(new NameComponent[0], BindingType.nobject); return false; } }
/** * Returns the next binding in the NamingContext. Uses the enumeration * object to determine if there are more bindings and if so, returns * the next binding from the InternalBindingValue. * @param b The Binding as an out parameter. * @return true if there were more bindings. */ final public boolean NextOne(org.omg.CosNaming.BindingHolder b) { // If there are more elements get the next element boolean hasMore = theEnumeration.hasMoreElements(); if (hasMore) { b.value = ((InternalBindingValue)theEnumeration.nextElement()).theBinding; currentSize--; } else { // Return empty but marshalable binding b.value = new Binding(new NameComponent[0],BindingType.nobject); } return hasMore; }
/** * Returns the next binding in the NamingContext. Uses the enumeration * object to determine if there are more bindings and if so, returns * the next binding from the InternalBindingValue. * @param b The Binding as an out parameter. * @return true if there were more bindings. */ final public boolean NextOne(org.omg.CosNaming.BindingHolder b) { // If there are more elements get the next element boolean hasMore = theEnumeration.hasMoreElements(); if (hasMore) { InternalBindingKey theBindingKey = ((InternalBindingKey)theEnumeration.nextElement()); InternalBindingValue theElement = (InternalBindingValue)theHashtable.get( theBindingKey ); NameComponent n = new NameComponent( theBindingKey.id, theBindingKey.kind ); NameComponent[] nlist = new NameComponent[1]; nlist[0] = n; BindingType theType = theElement.theBindingType; b.value = new Binding( nlist, theType ); } else { // Return empty but marshalable binding b.value = new Binding(new NameComponent[0],BindingType.nobject); } return hasMore; }
public static org.omg.CosNaming.Binding read (org.omg.CORBA.portable.InputStream istream) { org.omg.CosNaming.Binding value = new org.omg.CosNaming.Binding (); value.binding_name = org.omg.CosNaming.NameHelper.read (istream); value.binding_type = org.omg.CosNaming.BindingTypeHelper.read (istream); return value; }
public static org.omg.CosNaming.Binding read (org.omg.CORBA.portable.InputStream istream) { org.omg.CosNaming.Binding value = new org.omg.CosNaming.Binding (); value.binding_name = org.omg.CosNaming.NameHelper.read (istream); value.binding_type = org.omg.CosNaming.BindingTypeHelper.read (istream); return value; }
public static org.omg.CosNaming.Binding read (org.omg.CORBA.portable.InputStream istream) { org.omg.CosNaming.Binding value = new org.omg.CosNaming.Binding (); value.binding_name = org.omg.CosNaming.NameHelper.read (istream); value.binding_type = org.omg.CosNaming.BindingTypeHelper.read (istream); return value; }
public static org.omg.CosNaming.Binding read (final org.omg.CORBA.portable.InputStream in) { org.omg.CosNaming.Binding result = new org.omg.CosNaming.Binding(); result.binding_name = org.omg.CosNaming.NameHelper.read(in); result.binding_type=org.omg.CosNaming.BindingTypeHelper.read(in); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CosNaming.Binding s)
public static org.omg.CosNaming.Binding read (final org.omg.CORBA.portable.InputStream in) { org.omg.CosNaming.Binding result = new org.omg.CosNaming.Binding(); result.binding_name = org.omg.CosNaming.NameHelper.read(in); result.binding_type=org.omg.CosNaming.BindingTypeHelper.read(in); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CosNaming.Binding s)
result[how_many_ctr - 1] = new Binding((names.next()).components(), BindingType.nobject); result[how_many_ctr - 1] = new Binding((contexts.next()).components(), BindingType.ncontext); Binding[] rest = new Binding[size]; for (; names.hasNext() && size > 0; size--) rest[size - 1] = new Binding((names.next()).components(), BindingType.nobject); rest[size - 1] = new Binding((contexts.next()).components(), BindingType.ncontext); result = new Binding[size]; for (; names.hasNext() && size > 0; size--) result[size - 1] = new Binding((names.next()).components(), BindingType.nobject); result[size - 1] = new Binding((contexts.next()).components(), BindingType.ncontext);
result[how_many_ctr - 1] = new Binding((names.next()).components(), BindingType.nobject); result[how_many_ctr - 1] = new Binding((contexts.next()).components(), BindingType.ncontext); Binding[] rest = new Binding[size]; for (; names.hasNext() && size > 0; size--) rest[size - 1] = new Binding((names.next()).components(), BindingType.nobject); rest[size - 1] = new Binding((contexts.next()).components(), BindingType.ncontext); result = new Binding[size]; for (; names.hasNext() && size > 0; size--) result[size - 1] = new Binding((names.next()).components(), BindingType.nobject); result[size - 1] = new Binding((contexts.next()).components(), BindingType.ncontext);
for( ; n.hasMoreElements() && how_many_ctr > 0; how_many_ctr-- ) result[how_many_ctr-1] = new Binding(((Name)n.nextElement()).components(), BindingType.nobject ); result[how_many_ctr-1] = new Binding(((Name)c.nextElement()).components(), BindingType.ncontext); for( ; n.hasMoreElements() && size > 0; size-- ) rest[size-1] = new Binding(((Name)n.nextElement()).components(), BindingType.nobject ); rest[size-1] = new Binding(((Name)c.nextElement()).components(), BindingType.ncontext); new Binding(((Name)n.nextElement()).components(), BindingType.nobject ); new Binding(((Name)c.nextElement()).components(), BindingType.ncontext);
NameComponent[] name = new NameComponent[1]; name[0] = n; Binding b = new Binding(name,bt); InternalBindingValue value = new InternalBindingValue(b,null); value.theObjectRef = obj;