Package org.omg.CORBA

Examples of org.omg.CORBA.PrimitiveDef


* IRPrimitive constructor comment.
* @param irObject org.omg.CORBA.IRObject
*/
protected IRPrimitive(org.omg.CORBA.IRObject irObject) {
  super(irObject);
  PrimitiveDef primitiveDef = PrimitiveDefHelper.narrow((org.omg.CORBA.Object)irObject);
  switch (primitiveDef.kind().value()) {
    case PrimitiveKind._pk_null:
      setName("null")// gibt's nicht laut CORBA Spez.
      break;
    case PrimitiveKind._pk_void:
      setName("void");
View Full Code Here


     * @param args java.lang.String[]
     */
    public static void main(String args[]) {
        try {
            Repository rep    = RepositoryHelper.narrow( orb.resolve_initial_references("InterfaceRepository"));
            PrimitiveDef prim  = rep.get_primitive(PrimitiveKind.pk_short);

            InterfaceDef intf = InterfaceDefHelper.narrow( prim._get_interface_def());
            ObjectRepresentant objr = ObjectRepresentantFactory.create(prim,RemoteTypeSystem.createTypeSystemNode(intf),null);
            ModelBuilder.getSingleton().buildTreeModelAsync(objr);
        }
        catch (Exception e) {
            e.printStackTrace();
View Full Code Here

* IRPrimitive constructor comment.
* @param irObject org.omg.CORBA.IRObject
*/
protected IRPrimitive(org.omg.CORBA.IRObject irObject) {
  super(irObject);
  PrimitiveDef primitiveDef = PrimitiveDefHelper.narrow(irObject);
  switch (primitiveDef.kind().value()) {
    case PrimitiveKind._pk_null:
      setName("null")// does not exist according to CORBA spec
      break;
    case PrimitiveKind._pk_void:
      setName("void");
View Full Code Here

     * @param args java.lang.String[]
     */
    public static void main(String args[]) {
        try {
            Repository rep    = RepositoryHelper.narrow( orb.resolve_initial_references("InterfaceRepository"));
            PrimitiveDef prim  = rep.get_primitive(PrimitiveKind.pk_short);

            InterfaceDef intf = InterfaceDefHelper.narrow( prim._get_interface_def());
            ObjectRepresentant objr = ObjectRepresentantFactory.create(prim,RemoteTypeSystem.createTypeSystemNode(intf),null);
            ModelBuilder.getSingleton().buildTreeModelAsync(objr);
        }
        catch (Exception e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.omg.CORBA.PrimitiveDef

Copyright © 2018 www.massapicom. 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.