Class: DbDom::Xerces::DatabaseDocument

Inherits:
Object
  • Object
show all
Defined in:
lib/xerces.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ DatabaseDocument



84
85
86
87
88
89
90
91
92
93
# File 'lib/xerces.rb', line 84

def initialize(settings)
    @settings = settings
    super()
    needsSyncChildren(true)
    @docElement = DatabaseElement.new(self)
    # we need to append the doc root
    # (which makes sense but hadn't done it when I was just using DOM)
    # xpath relies on this
    appendChild(@docElement)
end

Instance Attribute Details

#settingsObject (readonly)

Returns the value of attribute settings.



95
96
97
# File 'lib/xerces.rb', line 95

def settings
  @settings
end

Instance Method Details

#getDocumentElementObject

Note: for some reason calling this class with ‘docElement’ did not result in this method being invoked I moved the initialization to the constructor this method was implemented because synchronizeChildren didn’t appear to be getting called in the first place



102
103
104
105
106
107
# File 'lib/xerces.rb', line 102

def getDocumentElement
#def synchronizeChildren
#    puts "SYNCING"
    @docElement
#    super
end