Examples of TypeCodeImpl


Examples of com.sun.corba.se.impl.corba.TypeCodeImpl

      CORBALogDomains.RPC_PRESENTATION ) ;

  typeCodeMap = new HashMap();

  primitiveTypeCodeConstants = new TypeCodeImpl[] {
      new TypeCodeImpl(this, TCKind._tk_null)
      new TypeCodeImpl(this, TCKind._tk_void),
      new TypeCodeImpl(this, TCKind._tk_short),   
      new TypeCodeImpl(this, TCKind._tk_long)
      new TypeCodeImpl(this, TCKind._tk_ushort)
      new TypeCodeImpl(this, TCKind._tk_ulong)
      new TypeCodeImpl(this, TCKind._tk_float)
      new TypeCodeImpl(this, TCKind._tk_double)
      new TypeCodeImpl(this, TCKind._tk_boolean)
      new TypeCodeImpl(this, TCKind._tk_char)
      new TypeCodeImpl(this, TCKind._tk_octet),
      new TypeCodeImpl(this, TCKind._tk_any)
      new TypeCodeImpl(this, TCKind._tk_TypeCode)
      new TypeCodeImpl(this, TCKind._tk_Principal),
      new TypeCodeImpl(this, TCKind._tk_objref)
      null,  // tk_struct   
      null,  // tk_union    
      null,  // tk_enum     
      new TypeCodeImpl(this, TCKind._tk_string),   
      null,  // tk_sequence 
      null,  // tk_array    
      null,  // tk_alias    
      null,  // tk_except   
      new TypeCodeImpl(this, TCKind._tk_longlong)
      new TypeCodeImpl(this, TCKind._tk_ulonglong),
      new TypeCodeImpl(this, TCKind._tk_longdouble),
      new TypeCodeImpl(this, TCKind._tk_wchar),   
      new TypeCodeImpl(this, TCKind._tk_wstring)
      new TypeCodeImpl(this, TCKind._tk_fixed)
      new TypeCodeImpl(this, TCKind._tk_value)
      new TypeCodeImpl(this, TCKind._tk_value_box),
      new TypeCodeImpl(this, TCKind._tk_native)
      new TypeCodeImpl(this, TCKind._tk_abstract_interface)
  } ;

        monitoringManager =
            MonitoringFactories.getMonitoringManagerFactory( ).
    createMonitoringManager(
View Full Code Here

Examples of com.sun.corba.se.impl.corba.TypeCodeImpl

    public final void write_TypeCode(TypeCode tc) {
        if (tc == null) {
            throw wrapper.nullParam(CompletionStatus.COMPLETED_MAYBE);
        }
        TypeCodeImpl tci;
        if (tc instanceof TypeCodeImpl) {
            tci = (TypeCodeImpl) tc;
        } else {
            tci = new TypeCodeImpl(orb, tc);
        }
        tci.write_value((org.omg.CORBA_2_3.portable.OutputStream) parent);
    }
View Full Code Here

Examples of com.sun.corba.se.impl.corba.TypeCodeImpl

    public org.omg.CORBA.Object read_Object() {
        return read_Object(null);
    }

    public TypeCode read_TypeCode() {
        TypeCodeImpl tc = new TypeCodeImpl(orb);
        tc.read_value(parent);
        return tc;
    }
View Full Code Here

Examples of com.sun.corba.se.impl.corba.TypeCodeImpl

    }

    public Any read_any() {

        Any any = orb.create_any();
        TypeCodeImpl tc = new TypeCodeImpl(orb);

        // read off the typecode

        // REVISIT We could avoid this try-catch if we could peek the typecode
        // kind off this stream and see if it is a tk_value.
        // Looking at the code we know that for tk_value the Any.read_value()
        // below ignores the tc argument anyway (except for the kind field).
        // But still we would need to make sure that the whole typecode,
        // including encapsulations, is read off.
        try {
            tc.read_value(parent);
        } catch (org.omg.CORBA.MARSHAL ex) {
            if (tc.kind().value() != org.omg.CORBA.TCKind._tk_value) {
                throw ex;
            }
            // We can be sure that the whole typecode encapsulation has been
            // read off.
            ex.printStackTrace();
View Full Code Here

Examples of com.sun.corba.se.impl.corba.TypeCodeImpl

    public final void write_TypeCode(TypeCode tc) {
        if (tc == null) {
            throw wrapper.nullParam(CompletionStatus.COMPLETED_MAYBE);
        }
        TypeCodeImpl tci;
        if (tc instanceof TypeCodeImpl) {
            tci = (TypeCodeImpl) tc;
        } else {
            tci = new TypeCodeImpl(orb, tc);
        }
        tci.write_value((org.omg.CORBA_2_3.portable.OutputStream) parent);
    }
View Full Code Here

Examples of com.sun.corba.se.impl.corba.TypeCodeImpl

    public org.omg.CORBA.Object read_Object() {
        return read_Object(null);
    }

    public TypeCode read_TypeCode() {
        TypeCodeImpl tc = new TypeCodeImpl(orb);
        tc.read_value(parent);
        return tc;
    }
View Full Code Here

Examples of com.sun.corba.se.impl.corba.TypeCodeImpl

    }

    public Any read_any() {

        Any any = orb.create_any();
        TypeCodeImpl tc = new TypeCodeImpl(orb);

        // read off the typecode

        // REVISIT We could avoid this try-catch if we could peek the typecode
        // kind off this stream and see if it is a tk_value.
        // Looking at the code we know that for tk_value the Any.read_value()
        // below ignores the tc argument anyway (except for the kind field).
        // But still we would need to make sure that the whole typecode,
        // including encapsulations, is read off.
        try {
            tc.read_value(parent);
        } catch (org.omg.CORBA.MARSHAL ex) {
            if (tc.kind().value() != org.omg.CORBA.TCKind._tk_value) {
                throw ex;
            }
            // We can be sure that the whole typecode encapsulation has been
            // read off.
            ex.printStackTrace();
View Full Code Here

Examples of com.sun.corba.se.impl.corba.TypeCodeImpl

    public synchronized TypeCode create_struct_tc(String id,
                                     String name,
                                     StructMember[] members)
    {
        checkShutdownState();
        return new TypeCodeImpl(this, TCKind._tk_struct, id, name, members);
    }
View Full Code Here

Examples of com.sun.corba.se.impl.corba.TypeCodeImpl

                                    String name,
                                    TypeCode discriminator_type,
                                    UnionMember[] members)
    {
        checkShutdownState();
        return new TypeCodeImpl(this,
                                TCKind._tk_union,
                                id,
                                name,
                                discriminator_type,
                                members);
View Full Code Here

Examples of com.sun.corba.se.impl.corba.TypeCodeImpl

    public synchronized TypeCode create_enum_tc(String id,
                                   String name,
                                   String[] members)
    {
        checkShutdownState();
        return new TypeCodeImpl(this, TCKind._tk_enum, id, name, members);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.