Class: XamplExample::Thing
Constant Summary
collapse
- @@tag =
"thing"
- @@ns =
"http://xampl.com/example"
- @@ns_tag =
"{http://xampl.com/example}thing"
- @@module_name =
"XamplExample"
- @@attributes =
[ [ :@pid, "pid" ] ]
Instance Attribute Summary collapse
#things_child
Attributes included from ThingAsChild
#thing_child, #thing_map
Attributes included from StuffAsChild
#stuff_child
#key_value_child, #key_value_map
#description_child
#load_needed, #persister
#is_changed, #parents
Class Method Summary
collapse
Instance Method Summary
collapse
#add_things, #init_things_as_child, #new_things, #remove_things
#add_thing, #init_thing_as_child, #new_thing, #remove_thing
#add_stuff, #init_stuff_as_child, #new_stuff, #remove_stuff
#add_key_value, #init_key_value_as_child, #new_key_value, #remove_key_value
#add_description, #init_description_as_child, #new_description, #remove_description
#<<, #_content, #_content=, #add_content, #after_visit_by_element_kind, #before_visit_by_element_kind, #children, #has_mixed_content, #init_data_content, #test_to_xml, #test_to_xml_internal, #visit_by_element_kind
#accessed, #changed, #describe_yourself, #force_load, #init_xampl_object, #introduce_persister, #persist_required, #reset_contents
#===, #accessed, #add_parent, #changed, #changes_accepted, #compare_xampl, #copy_xampl, from_ruby, from_string, from_xml_file, from_xml_string, #ignore_when_no_index, #init_attributes, #init_hook, #init_xampl_object, #invalid, #invalidate, lookup_preferred_ns_prefix, #mark_changed_deep, #note_add_child, #note_add_to_parent, #note_adding_text_content, #note_attributes_initialised, #note_closed, #note_created, #note_initialise_attributes_with, #note_invalidate, #note_replacing, ns_preferred_prefix, #persist, #persist_required, #pp_xml, realise_from_xml_string, recover_from_string, #to_ruby, #to_xml
Constructor Details
#initialize {|_self| ... } ⇒ Thing
Returns a new instance of Thing.
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
|
# File 'lib/xamplr/handwritten/example.rb', line 331
def initialize
super
init_xampl_object
@pid = nil if not defined? @pid
init_data_content
init_description_as_child
init_key_value_as_child
init_stuff_as_child
init_thing_as_child
init_things_as_child
yield(self) if block_given?
changed
end
|
Instance Attribute Details
#pid ⇒ Object
Returns the value of attribute pid.
306
307
308
|
# File 'lib/xamplr/handwritten/example.rb', line 306
def pid
@pid
end
|
Class Method Details
.module_name ⇒ Object
320
321
322
|
# File 'lib/xamplr/handwritten/example.rb', line 320
def Thing.module_name
@@module_name
end
|
.ns ⇒ Object
312
313
314
|
# File 'lib/xamplr/handwritten/example.rb', line 312
def Thing.ns
@@ns
end
|
.ns_tag ⇒ Object
316
317
318
|
# File 'lib/xamplr/handwritten/example.rb', line 316
def Thing.ns_tag
@@ns_tag
end
|
.tag ⇒ Object
308
309
310
|
# File 'lib/xamplr/handwritten/example.rb', line 308
def Thing.tag
@@tag
end
|
Instance Method Details
#append_to(other) ⇒ Object
349
350
351
|
# File 'lib/xamplr/handwritten/example.rb', line 349
def append_to(other)
other.add_thing(self)
end
|
#attributes ⇒ Object
369
370
371
|
# File 'lib/xamplr/handwritten/example.rb', line 369
def attributes
@@attributes
end
|
#get_the_index ⇒ Object
373
374
375
|
# File 'lib/xamplr/handwritten/example.rb', line 373
def get_the_index
@pid
end
|
#module_name ⇒ Object
365
366
367
|
# File 'lib/xamplr/handwritten/example.rb', line 365
def module_name
@@module_name
end
|
#ns ⇒ Object
357
358
359
|
# File 'lib/xamplr/handwritten/example.rb', line 357
def ns
@@ns
end
|
#ns_tag ⇒ Object
361
362
363
|
# File 'lib/xamplr/handwritten/example.rb', line 361
def ns_tag
@@ns_tag
end
|
#set_the_index(index) ⇒ Object
377
378
379
|
# File 'lib/xamplr/handwritten/example.rb', line 377
def set_the_index(index)
@pid = index
end
|
#tag ⇒ Object
353
354
355
|
# File 'lib/xamplr/handwritten/example.rb', line 353
def tag
@@tag
end
|