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

Returns a new instance of Microsoft_XMLDSO_1_0.



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

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



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

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

Instance Attribute Details

#clsidObject (readonly)

Returns the value of attribute clsid.



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

def clsid
  @clsid
end

#dispatchObject (readonly)

Returns the value of attribute dispatch.



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

def dispatch
  @dispatch
end

#lastargsObject (readonly)

Returns the value of attribute lastargs.



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

def lastargs
  @lastargs
end

#progidObject (readonly)

Returns the value of attribute progid.



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

def progid
  @progid
end

Instance Method Details

#JavaDSOCompatibleObject

I4 JavaDSOCompatible



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

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

#JavaDSOCompatible=(arg0) ⇒ Object

VOID JavaDSOCompatible



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

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

#readyStateObject

I4 readyState



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

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

#XMLDocumentObject

IXMLDOMDocument XMLDocument



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

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

#XMLDocument=(arg0) ⇒ Object

VOID XMLDocument



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

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