Class: Microsoft_XMLDSO_1_0

Inherits:
Object
  • Object
show all
Includes:
WIN32OLE::VARIANT
Defined in:
sample/xml.rb

Overview

XML Data Source Object

Constant Summary

Constants included from WIN32OLE::VARIANT

WIN32OLE::VARIANT::VT_ARRAY, WIN32OLE::VARIANT::VT_BOOL, WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_BYREF, WIN32OLE::VARIANT::VT_CY, WIN32OLE::VARIANT::VT_DATE, WIN32OLE::VARIANT::VT_DISPATCH, WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_ERROR, WIN32OLE::VARIANT::VT_I1, WIN32OLE::VARIANT::VT_I2, WIN32OLE::VARIANT::VT_I4, WIN32OLE::VARIANT::VT_I8, WIN32OLE::VARIANT::VT_INT, WIN32OLE::VARIANT::VT_NULL, WIN32OLE::VARIANT::VT_PTR, WIN32OLE::VARIANT::VT_R4, WIN32OLE::VARIANT::VT_R8, WIN32OLE::VARIANT::VT_UI1, WIN32OLE::VARIANT::VT_UI2, WIN32OLE::VARIANT::VT_UI4, WIN32OLE::VARIANT::VT_UI8, WIN32OLE::VARIANT::VT_UINT, WIN32OLE::VARIANT::VT_UNKNOWN, WIN32OLE::VARIANT::VT_USERDEFINED, WIN32OLE::VARIANT::VT_VARIANT

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj = nil) ⇒ Microsoft_XMLDSO_1_0


7135
7136
7137
7138
7139
7140
7141
7142
7143
# File 'sample/xml.rb', line 7135

def initialize(obj = nil)
  @clsid = "{550DDA30-0541-11D2-9CA9-0060B0EC3D39}"
  @progid = "Microsoft.XMLDSO.1.0"
  if obj.nil?
    @dispatch = WIN32OLE.new(@progid)
  else
    @dispatch = obj
  end
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(cmd, *arg) ⇒ Object


7145
7146
7147
# File 'sample/xml.rb', line 7145

def method_missing(cmd, *arg)
  @dispatch.method_missing(cmd, *arg)
end

Instance Attribute Details

#clsidObject (readonly)

Returns the value of attribute clsid


7132
7133
7134
# File 'sample/xml.rb', line 7132

def clsid
  @clsid
end

#dispatchObject (readonly)

Returns the value of attribute dispatch


7131
7132
7133
# File 'sample/xml.rb', line 7131

def dispatch
  @dispatch
end

#lastargsObject (readonly)

Returns the value of attribute lastargs


7130
7131
7132
# File 'sample/xml.rb', line 7130

def lastargs
  @lastargs
end

#progidObject (readonly)

Returns the value of attribute progid


7133
7134
7135
# File 'sample/xml.rb', line 7133

def progid
  @progid
end

Instance Method Details

#JavaDSOCompatibleObject

I4 JavaDSOCompatible


7157
7158
7159
7160
7161
# File 'sample/xml.rb', line 7157

def JavaDSOCompatible()
  ret = @dispatch._getproperty(65538, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#JavaDSOCompatible=(arg0) ⇒ Object

VOID JavaDSOCompatible


7178
7179
7180
7181
7182
# File 'sample/xml.rb', line 7178

def JavaDSOCompatible=(arg0)
  ret = @dispatch._setproperty(65538, [arg0], [VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#readyStateObject

I4 readyState


7164
7165
7166
7167
7168
# File 'sample/xml.rb', line 7164

def readyState()
  ret = @dispatch._getproperty(-525, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#XMLDocumentObject

IXMLDOMDocument XMLDocument


7150
7151
7152
7153
7154
# File 'sample/xml.rb', line 7150

def XMLDocument()
  ret = @dispatch._getproperty(65537, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#XMLDocument=(arg0) ⇒ Object

VOID XMLDocument


7171
7172
7173
7174
7175
# File 'sample/xml.rb', line 7171

def XMLDocument=(arg0)
  ret = @dispatch._setproperty(65537, [arg0], [VT_BYREF|VT_DISPATCH])
  @lastargs = WIN32OLE::ARGV
  ret
end