1 7 8 package com.sun.corba.se.impl.dynamicany; 9 10 import org.omg.CORBA.TypeCode ; 11 import org.omg.CORBA.TCKind ; 12 import org.omg.CORBA.Any ; 13 import org.omg.CORBA.TypeCodePackage.BadKind ; 14 import org.omg.CORBA.TypeCodePackage.Bounds ; 15 import org.omg.DynamicAny.*; 16 import org.omg.DynamicAny.DynAnyPackage.TypeMismatch ; 17 import org.omg.DynamicAny.DynAnyPackage.InvalidValue ; 18 import org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode ; 19 20 import com.sun.corba.se.spi.orb.ORB ; 21 import com.sun.corba.se.spi.logging.CORBALogDomains ; 22 import com.sun.corba.se.impl.logging.ORBUtilSystemException ; 23 24 public class DynStructImpl extends DynAnyComplexImpl implements DynStruct 25 { 26 30 private DynStructImpl() { 31 this(null, (Any )null, false); 32 } 33 34 protected DynStructImpl(ORB orb, Any any, boolean copyValue) { 35 super(orb, any, copyValue); 37 } 40 41 protected DynStructImpl(ORB orb, TypeCode typeCode) { 42 super(orb, typeCode); 44 index = 0; 48 } 49 50 54 public org.omg.DynamicAny.NameValuePair [] get_members () { 55 if (status == STATUS_DESTROYED) { 56 throw wrapper.dynAnyDestroyed() ; 57 } 58 checkInitComponents(); 59 return nameValuePairs; 60 } 61 62 public org.omg.DynamicAny.NameDynAnyPair [] get_members_as_dyn_any () { 63 if (status == STATUS_DESTROYED) { 64 throw wrapper.dynAnyDestroyed() ; 65 } 66 checkInitComponents(); 67 return nameDynAnyPairs; 68 } 69 } 70 | Popular Tags |