Class: KeepYourHead::XmlAccessor::XmlAccessorElementList
- Inherits:
-
Object
- Object
- KeepYourHead::XmlAccessor::XmlAccessorElementList
- Defined in:
- lib/Keepyourhead/database/XmlAccessor.rb
Instance Attribute Summary collapse
-
#_class ⇒ Object
readonly
Returns the value of attribute _class.
-
#elementRegExp ⇒ Object
readonly
Returns the value of attribute elementRegExp.
-
#functionName ⇒ Object
readonly
Returns the value of attribute functionName.
-
#procRead ⇒ Object
readonly
Returns the value of attribute procRead.
Instance Method Summary collapse
- #_addInsert(elementRegExp, procRead, notifyEvent) ⇒ Object
- #_addRead(elementRegExp, procRead) ⇒ Object
- #_addRemove(elementRegExp, notifyEvent) ⇒ Object
- #addCreate(functionName, elementName, notifyEvent, procCreate) ⇒ Object
- #addInsert(notifyEvent) ⇒ Object
- #addRead ⇒ Object
- #addRemove(notifyEvent) ⇒ Object
-
#initialize(_class, functionName, elementRegExp, procRead) ⇒ XmlAccessorElementList
constructor
A new instance of XmlAccessorElementList.
Constructor Details
#initialize(_class, functionName, elementRegExp, procRead) ⇒ XmlAccessorElementList
Returns a new instance of XmlAccessorElementList.
262 263 264 265 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 262 def initialize(_class, functionName, elementRegExp, procRead ) @_class, @functionName, @elementRegExp, @procRead = _class, functionName, elementRegExp, procRead end |
Instance Attribute Details
#_class ⇒ Object (readonly)
Returns the value of attribute _class.
261 262 263 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 261 def _class @_class end |
#elementRegExp ⇒ Object (readonly)
Returns the value of attribute elementRegExp.
261 262 263 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 261 def elementRegExp @elementRegExp end |
#functionName ⇒ Object (readonly)
Returns the value of attribute functionName.
261 262 263 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 261 def functionName @functionName end |
#procRead ⇒ Object (readonly)
Returns the value of attribute procRead.
261 262 263 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 261 def procRead @procRead end |
Instance Method Details
#_addInsert(elementRegExp, procRead, notifyEvent) ⇒ Object
288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 288 def _addInsert(elementRegExp, procRead, notifyEvent) _class.my_define_method((functionName.to_s + "InsertFirst").to_sym) { |node| xmlAccessorElementListInsertFirst elementRegExp, notifyEvent, procRead, node } _class.my_define_method((functionName.to_s + "InsertLast").to_sym) { |node| xmlAccessorElementListInsertLast elementRegExp, notifyEvent, procRead, node } _class.my_define_method((functionName.to_s + "InsertBefore").to_sym) { |node,other| xmlAccessorElementListInsertBefore elementRegExp, notifyEvent, procRead, node, other } _class.my_define_method((functionName.to_s + "InsertAfter").to_sym) { |node,other| xmlAccessorElementListInsertAfter elementRegExp, notifyEvent, procRead, node, other } end |
#_addRead(elementRegExp, procRead) ⇒ Object
266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 266 def _addRead(elementRegExp,procRead) _class.my_define_method((functionName.to_s + "s").to_sym) { xmlAccessorElementListRead elementRegExp, procRead } _class.my_define_method((functionName.to_s + "Next").to_sym) { |other| xmlAccessorElementListNext elementRegExp, procRead, other } _class.my_define_method((functionName.to_s + "Previous").to_sym) { |other| xmlAccessorElementListPrevious elementRegExp, procRead, other } end |
#_addRemove(elementRegExp, notifyEvent) ⇒ Object
280 281 282 283 284 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 280 def _addRemove(elementRegExp, notifyEvent) _class.my_define_method((functionName.to_s + "Remove").to_sym) { |item| xmlAccessorElementListRemove elementRegExp, notifyEvent, item } end |
#addCreate(functionName, elementName, notifyEvent, procCreate) ⇒ Object
305 306 307 308 309 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 305 def addCreate(functionName, elementName, notifyEvent, procCreate) _class.my_define_method((functionName.to_s + "Create").to_sym) { || xmlAccessorElementListCreate elementName, notifyEvent, procCreate } end |
#addInsert(notifyEvent) ⇒ Object
302 303 304 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 302 def addInsert(notifyEvent) _addInsert(elementRegExp, procRead, notifyEvent) end |
#addRead ⇒ Object
277 278 279 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 277 def addRead _addRead(elementRegExp, procRead) end |
#addRemove(notifyEvent) ⇒ Object
285 286 287 |
# File 'lib/Keepyourhead/database/XmlAccessor.rb', line 285 def addRemove(notifyEvent) _addRemove(elementRegExp, notifyEvent) end |