Package org.jboss.iiop.rmi.ir

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

/*     */ package org.jboss.iiop.rmi.ir;
/*     */
/*     */ import org.omg.CORBA.BAD_INV_ORDER;
/*     */ import org.omg.CORBA.DefinitionKind;
/*     */ import org.omg.CORBA.IDLType;
/*     */ import org.omg.CORBA.IDLTypeHelper;
/*     */ import org.omg.CORBA.IRObject;
/*     */ import org.omg.CORBA.SequenceDef;
/*     */ import org.omg.CORBA.SequenceDefHelper;
/*     */ import org.omg.CORBA.SequenceDefOperations;
/*     */ import org.omg.CORBA.SequenceDefPOATie;
/*     */ import org.omg.CORBA.TCKind;
/*     */ import org.omg.CORBA.TypeCode;
/*     */ import org.omg.CORBA.TypeCodePackage.BadKind;
/*     */
/*     */ class SequenceDefImpl extends IDLTypeImpl
/*     */   implements SequenceDefOperations
/*     */ {
/* 132 */   private SequenceDef ref = null;
/*     */   private LocalIDLType element_type_def;
/*     */
/*     */   SequenceDefImpl(TypeCode typeCode, RepositoryImpl repository)
/*     */   {
/*  55 */     super(typeCode, DefinitionKind.dk_Sequence, repository);
/*     */   }
/*     */
/*     */   public IRObject getReference()
/*     */   {
/*  64 */     if (this.ref == null) {
/*  65 */       this.ref = SequenceDefHelper.narrow(servantToReference(new SequenceDefPOATie(this)));
/*     */     }
/*     */
/*  68 */     return this.ref;
/*     */   }
/*     */
/*     */   public void allDone()
/*     */     throws IRConstructionException
/*     */   {
/*     */     try
/*     */     {
/*  76 */       this.element_type_def = IDLTypeImpl.getIDLType(type().content_type(), this.repository);
/*     */     }
/*     */     catch (BadKind ex) {
/*  79 */       throw new RuntimeException("Bad kind " + type().kind().value() + " for TypeCode.content_type()");
/*     */     }
/*     */
/*  83 */     getReference();
/*     */   }
/*     */
/*     */   public int bound()
/*     */   {
/*     */     try
/*     */     {
/*  92 */       return type().length();
/*     */     } catch (BadKind ex) {
/*     */     }
/*  95 */     throw new RuntimeException();
/*     */   }
/*     */
/*     */   public void bound(int arg)
/*     */   {
/* 101 */     throw new BAD_INV_ORDER("Cannot change RMI/IIOP mapping.");
/*     */   }
/*     */
/*     */   public TypeCode element_type()
/*     */   {
/*     */     try {
/* 107 */       return type().content_type();
/*     */     } catch (BadKind ex) {
/*     */     }
/* 110 */     throw new RuntimeException();
/*     */   }
/*     */
/*     */   public IDLType element_type_def()
/*     */   {
/* 116 */     return IDLTypeHelper.narrow(this.element_type_def.getReference());
/*     */   }
/*     */
/*     */   public void element_type_def(IDLType arg)
/*     */   {
/* 121 */     throw new BAD_INV_ORDER("Cannot change RMI/IIOP mapping.");
/*     */   }
/*     */ }

/* 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.SequenceDefImpl
* JD-Core Version:    0.6.0
*/
TOP

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

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.