Class: SiSU_AO_DocumentStructure::ObjectStructure
- Inherits:
-
Object
- Object
- SiSU_AO_DocumentStructure::ObjectStructure
- Defined in:
- lib/sisu/ao_doc_objects.rb
Instance Attribute Summary collapse
-
#is ⇒ Object
Returns the value of attribute is.
-
#lc ⇒ Object
Returns the value of attribute lc.
-
#ln ⇒ Object
Returns the value of attribute ln.
-
#lv ⇒ Object
Returns the value of attribute lv.
-
#node ⇒ Object
Returns the value of attribute node.
-
#obj ⇒ Object
Returns the value of attribute obj.
-
#of ⇒ Object
Returns the value of attribute of.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#tmp ⇒ Object
Returns the value of attribute tmp.
Instance Method Summary collapse
-
#initialize ⇒ ObjectStructure
constructor
A new instance of ObjectStructure.
- #xml_dom(h, o = nil) ⇒ Object
Constructor Details
#initialize ⇒ ObjectStructure
Returns a new instance of ObjectStructure.
450 451 452 453 |
# File 'lib/sisu/ao_doc_objects.rb', line 450 def initialize @of=:structure @is=@obj=@node=@lv=@ln=@lc=@status=@tmp=nil end |
Instance Attribute Details
#is ⇒ Object
Returns the value of attribute is.
449 450 451 |
# File 'lib/sisu/ao_doc_objects.rb', line 449 def is @is end |
#lc ⇒ Object
Returns the value of attribute lc.
449 450 451 |
# File 'lib/sisu/ao_doc_objects.rb', line 449 def lc @lc end |
#ln ⇒ Object
Returns the value of attribute ln.
449 450 451 |
# File 'lib/sisu/ao_doc_objects.rb', line 449 def ln @ln end |
#lv ⇒ Object
Returns the value of attribute lv.
449 450 451 |
# File 'lib/sisu/ao_doc_objects.rb', line 449 def lv @lv end |
#node ⇒ Object
Returns the value of attribute node.
449 450 451 |
# File 'lib/sisu/ao_doc_objects.rb', line 449 def node @node end |
#obj ⇒ Object
Returns the value of attribute obj.
449 450 451 |
# File 'lib/sisu/ao_doc_objects.rb', line 449 def obj @obj end |
#of ⇒ Object
Returns the value of attribute of.
449 450 451 |
# File 'lib/sisu/ao_doc_objects.rb', line 449 def of @of end |
#status ⇒ Object
Returns the value of attribute status.
449 450 451 |
# File 'lib/sisu/ao_doc_objects.rb', line 449 def status @status end |
#tag ⇒ Object
Returns the value of attribute tag.
449 450 451 |
# File 'lib/sisu/ao_doc_objects.rb', line 449 def tag @tag end |
#tmp ⇒ Object
Returns the value of attribute tmp.
449 450 451 |
# File 'lib/sisu/ao_doc_objects.rb', line 449 def tmp @tmp end |
Instance Method Details
#xml_dom(h, o = nil) ⇒ Object
454 455 456 457 458 459 460 461 462 463 464 465 466 |
# File 'lib/sisu/ao_doc_objects.rb', line 454 def xml_dom(h,o=nil) of= @of #Symbol, classification - group is= :xml_dom #Symbol, classification - specific type obj= h[:obj] || ((defined? o.obj) ? o.obj : '') #String, text content lv= h[:lv] || ((defined? o.lv) ? o.lv : nil) #Alpha-numeric, document structure as used in markup, A-D then 1-6 ln= h[:ln] || ((defined? o.ln) ? o.ln : nil) #Integer, document structure level, for convenience in processing 1-9 lc= h[:lc] || ((defined? o.lc) ? o.lc : nil) #Integer, document structure collapsed level, convenience (collapse sisu's dual level document structure for markup with simple linear structure) node= h[:node] || ((defined? o.node) ? o.node : nil) #[Node relationship doc structure info] status= h[:status] || ((defined? o.status) ? o.status : nil) #tag status Symbol :open or :close tmp= h[:tmp] || ((defined? o.tmp) ? o.tmp : nil) #available for processing, empty after use @of,@is,@obj,@status,@node,@lv,@ln,@lc,@tmp=of,is,obj,status,node,lv,ln,lc,tmp self end |