public boolean isContext() { return binding.binding_type.value()==BindingType._ncontext; } public void setTypeID(String id)
public static org.omg.CosNaming.BindingType read (org.omg.CORBA.portable.InputStream istream) { return org.omg.CosNaming.BindingType.from_int (istream.read_long ()); }
public static org.omg.CosNaming.BindingType read (org.omg.CORBA.portable.InputStream istream) { return org.omg.CosNaming.BindingType.from_int (istream.read_long ()); }
public static void write (final org.omg.CORBA.portable.OutputStream out, final BindingType s) { out.write_long(s.value()); } }
public static org.omg.CosNaming.BindingType read (org.omg.CORBA.portable.InputStream istream) { return org.omg.CosNaming.BindingType.from_int (istream.read_long ()); }
public static void write (final org.omg.CORBA.portable.OutputStream out, final BindingType s) { out.write_long(s.value()); } }
public static BindingType read (final org.omg.CORBA.portable.InputStream in) { return BindingType.from_int(in.read_long()); }
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.BindingType value) { ostream.write_long (value.value ()); }
public static BindingType read (final org.omg.CORBA.portable.InputStream in) { return BindingType.from_int(in.read_long()); }
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.BindingType value) { ostream.write_long (value.value ()); }
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.BindingType value) { ostream.write_long (value.value ()); }
if ( bth.value.value() == BindingType.nobject.value() ) { if ( bt.value() == BindingType.ncontext.value() ) { throw new NotFound(NotFoundReason.not_context, n); if ( bt.value() == BindingType.nobject.value() ) { throw new NotFound(NotFoundReason.not_object, n); switch (bt.value()) { case BindingType._nobject:
if ( bth.value.value() == BindingType.nobject.value() ){ if ( bt.value() == BindingType.ncontext.value() ) { throw new NotFound( NotFoundReason.not_context, n); if ( bt.value() == BindingType.nobject.value() ) { throw new NotFound( NotFoundReason.not_object, n); switch (bt.value()) { case BindingType._nobject:
if( bh.value.binding_type.value() == BindingType._ncontext )
if (type.value.value() != BindingType._ncontext) { throw new NotFound(NotFoundReason.not_context, new NameComponent[] {name});
/** * Resolve a name to a context object stored that has * already been stored in this context. Throws an exception * if the name cannot be resolved or if the resolved * object is not a naming context. * * @param name The target name. * * @return The resolved NamingContext object. * @exception org.omg.CosNaming.NamingContextPackage.NotFound */ protected synchronized NamingContext resolveContext(NameComponent name) throws org.omg.CosNaming.NamingContextPackage.NotFound { BindingTypeHolder type = new BindingTypeHolder(); // Resolve this to an object. We must be able to resolve this. org.omg.CORBA.Object resolvedReference = resolveObject(name, type); if (resolvedReference == null) { throw new NotFound(NotFoundReason.missing_node, new NameComponent[] { name }); } // it has to resolve to a naming context if (type.value.value() != BindingType._ncontext) { throw new NotFound(NotFoundReason.not_context, new NameComponent[] { name }); } // in theory, this is a naming context. Narrow it an return. Any // errors just become a NotFound exception try { return NamingContextHelper.narrow(resolvedReference); } catch (org.omg.CORBA.BAD_PARAM ex) { throw new NotFound(NotFoundReason.not_context, new NameComponent[] { name }); } }
if( bt.value() == BindingType._nobject ) {
if (type.value.value() != BindingType._ncontext) { throw new NotFound(NotFoundReason.not_context, n);