1 26 27 package org.objectweb.openccm.ast.lib; 28 29 41 42 public class UnionMemberImpl 43 extends WithNameTypeRefImpl 44 implements org.objectweb.openccm.ast.api.UnionMember 45 { 46 52 53 private AnyValueImpl any_; 54 55 61 68 public 69 UnionMemberImpl(String name, 70 org.objectweb.openccm.ast.api.TypeRef type, 71 AnyValueImpl any) 72 { 73 super(name, type); 75 76 any_ = any; 78 } 79 80 86 93 protected org.omg.CORBA.UnionMember 94 getUnionMember(org.omg.CORBA.TypeCode discriminator) 95 { 96 return new org.omg.CORBA.UnionMember ( 97 getName(), 98 any_.computeAny(discriminator), 99 org.objectweb.openccm.corba.TypeCodeUtils.getTC_void(), 100 getIDLType()); 101 } 102 103 109 115 120 public void 121 setAnyValue(org.objectweb.openccm.ast.api.AnyValue value) 122 { 123 any_ = (AnyValueImpl)value; 124 } 125 126 131 public org.objectweb.openccm.ast.api.AnyValue 132 getAnyValue() 133 { 134 return any_; 135 } 136 137 } 143 | Popular Tags |