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)


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

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



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

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

#destroyObject

of operation copy



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

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

#policy_typeObject

——————- “Policy Operations”



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

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