Class: XamplGenerator::Elements
- Inherits:
-
Object
- Object
- XamplGenerator::Elements
show all
- Includes:
- Xampl::XamplPersistedObject, Xampl::XamplWithDataContent, ElementAsChild
- Defined in:
- lib/xamplr-gen/xampl-hand-generated.rb
Constant Summary
collapse
- @@tag =
"elements"
- @@ns =
"http://xampl.com/generator"
- @@ns_tag =
"{http://xampl.com/generator}elements"
- @@module_name =
"XamplGenerator"
- @@attributes =
[
[ :@pid, "pid" ],
]
Class Method Summary
collapse
Instance Method Summary
collapse
#add_element, #element_child, #element_child=, #ensure_element, #init_element_as_child, #new_element, #remove_element
Constructor Details
#initialize(index = nil) {|_self| ... } ⇒ Elements
Returns a new instance of Elements.
502
503
504
505
506
507
508
509
510
511
512
513
514
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 502
def initialize(index=nil)
@pid = index if index
super()
@pid = nil if not defined? @pid
init_xampl_object
init_data_content
init_element_as_child
yield(self) if block_given?
changed
end
|
Class Method Details
.[](pid) ⇒ Object
485
486
487
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 485
def Elements.[](pid)
Xampl.lookup(Elements, pid)
end
|
.lookup(pid) ⇒ Object
481
482
483
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 481
def Elements.lookup(pid)
Xampl.lookup(Elements, pid)
end
|
.module_name ⇒ Object
535
536
537
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 535
def Elements.module_name
@@module_name
end
|
.ns ⇒ Object
527
528
529
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 527
def Elements.ns
@@ns
end
|
.ns_tag ⇒ Object
531
532
533
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 531
def Elements.ns_tag
@@ns_tag
end
|
.persisted? ⇒ Boolean
464
465
466
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 464
def Elements.persisted?
false
end
|
.tag ⇒ Object
523
524
525
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 523
def Elements.tag
@@tag
end
|
Instance Method Details
#after_visit(visitor) ⇒ Object
583
584
585
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 583
def after_visit(visitor)
visitor.after_visit_elements(self)
end
|
#append_to(other) ⇒ Object
519
520
521
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 519
def append_to(other)
other.add_elements(self)
end
|
#attributes ⇒ Object
555
556
557
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 555
def attributes
@@attributes
end
|
#before_visit(visitor) ⇒ Object
575
576
577
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 575
def before_visit(visitor)
visitor.before_visit_elements(self)
end
|
#clear_non_persistent_index_attributes ⇒ Object
516
517
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 516
def clear_non_persistent_index_attributes
end
|
#get_the_index ⇒ Object
563
564
565
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 563
def get_the_index
@pid
end
|
#indexed_by ⇒ Object
559
560
561
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 559
def indexed_by
:pid
end
|
#module_name ⇒ Object
551
552
553
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 551
def module_name
@@module_name
end
|
#ns ⇒ Object
543
544
545
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 543
def ns
@@ns
end
|
#ns_tag ⇒ Object
547
548
549
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 547
def ns_tag
@@ns_tag
end
|
#persisted? ⇒ Boolean
468
469
470
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 468
def persisted?
false
end
|
#pid ⇒ Object
489
490
491
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 489
def pid
@pid
end
|
#pid=(v) ⇒ Object
493
494
495
496
497
498
499
500
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 493
def pid=(v)
accessed
Xampl.auto_uncache(self) if @pid
@pid = v
changed
Xampl.auto_cache(self) if v
end
|
#set_the_index(index) ⇒ Object
567
568
569
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 567
def set_the_index(index)
@pid = index
end
|
#substitute_in_visit(visitor) ⇒ Object
571
572
573
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 571
def substitute_in_visit(visitor)
return visitor.substitute_in_visit_elements(self) || self
end
|
#tag ⇒ Object
539
540
541
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 539
def tag
@@tag
end
|
#visit(visitor) ⇒ Object
579
580
581
|
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 579
def visit(visitor)
visitor.visit_elements(self)
end
|