Class: R2CORBA::CORBA::TypeCode::Alias
- Inherits:
-
IdentifiedTypeCode
- Object
- R2CORBA::CORBA::TypeCode
- IdentifiedTypeCode
- R2CORBA::CORBA::TypeCode::Alias
- Defined in:
- lib/corba/cbase/Typecode.rb,
lib/corba/jbase/Typecode.rb,
lib/corba/common/Typecode.rb
Overview
IdentifiedTypeCode
Constant Summary
Constants inherited from R2CORBA::CORBA::TypeCode
LongLongRange, LongRange, OctetRange, ShortRange, ULongLongRange, ULongRange, UShortRange
Instance Attribute Summary
Attributes inherited from R2CORBA::CORBA::TypeCode
Instance Method Summary collapse
- #get_type ⇒ Object
-
#initialize(*args) ⇒ Alias
constructor
A new instance of Alias.
- #needs_conversion(val) ⇒ Object
- #resolved_tc ⇒ Object
- #validate(val) ⇒ Object
Methods inherited from R2CORBA::CORBA::TypeCode
_tc, _wrap_native, #concrete_base_type, #content_type, #default_index, #discriminator_type, #equal?, #equivalent?, #fixed_digits, #fixed_scale, from_native, #get_compact_typecode, get_primitive_tc, #id, #is_recursive_tc?, #kind, #length, #member_count, #member_label, #member_name, #member_type, #member_visibility, #name, native_kind, register_id_type, #type_modifier, typecode_for_id, typecodes_for_name
Constructor Details
#initialize(*args) ⇒ Alias
Returns a new instance of Alias.
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/corba/cbase/Typecode.rb', line 148 def initialize(*args) if CORBA::Native::TypeCode === args.first @tc_ = args.first @type = nil super(@tc_.id) else id, name, orig_tc, type = args raise ArgumentError, 'expected CORBA::TypeCode' unless orig_tc.is_a?(CORBA::TypeCode) begin @tc_ = CORBA::Native::TypeCode.create_tc(TK_ALIAS, id.to_s, name.to_s, orig_tc.tc_) rescue ::NativeException CORBA::Exception.native2r($!) end @type = type super(id) end end |
Instance Method Details
#get_type ⇒ Object
608 609 610 |
# File 'lib/corba/common/Typecode.rb', line 608 def get_type @type || self.content_type.get_type end |
#needs_conversion(val) ⇒ Object
615 616 617 |
# File 'lib/corba/common/Typecode.rb', line 615 def needs_conversion(val) self.content_type.needs_conversion(val) end |
#resolved_tc ⇒ Object
619 620 621 |
# File 'lib/corba/common/Typecode.rb', line 619 def resolved_tc self.content_type.resolved_tc end |
#validate(val) ⇒ Object
611 612 613 |
# File 'lib/corba/common/Typecode.rb', line 611 def validate(val) self.content_type.validate(val) end |