Package org.jboss.iiop.rmi.ir

Source Code of org.jboss.iiop.rmi.ir.TypedefDefImpl

/*    */ package org.jboss.iiop.rmi.ir;
/*    */
/*    */ import org.omg.CORBA.Any;
/*    */ import org.omg.CORBA.ContainedOperations;
/*    */ import org.omg.CORBA.ContainedPackage.Description;
/*    */ import org.omg.CORBA.DefinitionKind;
/*    */ import org.omg.CORBA.ORB;
/*    */ import org.omg.CORBA.TypeCode;
/*    */ import org.omg.CORBA.TypeDescription;
/*    */ import org.omg.CORBA.TypeDescriptionHelper;
/*    */ import org.omg.CORBA.TypedefDefOperations;
/*    */
/*    */ abstract class TypedefDefImpl extends ContainedImpl
/*    */   implements TypedefDefOperations, LocalContainedIDLType
/*    */ {
/*    */   private TypeCode typeCode;
/*    */
/*    */   TypedefDefImpl(String id, String name, String version, LocalContainer defined_in, TypeCode typeCode, DefinitionKind def_kind, RepositoryImpl repository)
/*    */   {
/* 55 */     super(id, name, version, defined_in, def_kind, repository);
/*    */
/* 58 */     this.typeCode = typeCode;
/*    */   }
/*    */
/*    */   public Description describe()
/*    */   {
/* 67 */     String defined_in_id = "IR";
/*    */
/* 69 */     if ((this.defined_in instanceof ContainedOperations)) {
/* 70 */       defined_in_id = ((ContainedOperations)this.defined_in).id();
/*    */     }
/* 72 */     TypeDescription td = new TypeDescription(this.name, this.id, defined_in_id, this.version, this.typeCode);
/*    */
/* 75 */     Any any = getORB().create_any();
/*    */
/* 77 */     TypeDescriptionHelper.insert(any, td);
/*    */
/* 79 */     return new Description(DefinitionKind.dk_Typedef, any);
/*    */   }
/*    */
/*    */   public TypeCode type()
/*    */   {
/* 86 */     return this.typeCode;
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.iiop.rmi.ir.TypedefDefImpl
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.iiop.rmi.ir.TypedefDefImpl

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.