Module: R2CORBA::CORBA::Policy

Defined in:
lib/corba/jbase/policies.rb

Overview

Object

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

._wrap_native(jpol) ⇒ Object

Raises:

  • (ArgumentError)


83
84
85
86
87
# File 'lib/corba/jbase/policies.rb', line 83

def self._wrap_native(jpol)
  raise ArgumentError, 'Expected org.omg.CORBA.Policy' unless jpol.nil? || jpol.is_a?(Native::Policy)

  Policy._narrow(CORBA::Object._wrap_native(jpol))
end

Instance Method Details

#copyObject

of attribute get_policy_type



99
100
101
102
103
104
105
# File 'lib/corba/jbase/policies.rb', line 99

def copy
  begin
    Policy._wrap_native(self.objref_.copy)
  rescue ::NativeException
    CORBA::Exception.native2r($!)
  end
end

#destroyObject

of operation copy



107
108
109
110
111
112
113
114
# File 'lib/corba/jbase/policies.rb', line 107

def destroy
  begin
    self.objref_.destroy
  rescue ::NativeException
    CORBA::Exception.native2r($!)
  end
  @objref_ = nil
end

#policy_typeObject

——————- “Policy Operations”



91
92
93
94
95
96
97
# File 'lib/corba/jbase/policies.rb', line 91

def policy_type
  begin
    self.objref_.policy_type
  rescue ::NativeException
    CORBA::Exception.native2r($!)
  end
end