Class: SiSU_AO_DocumentStructure::ObjectStructure

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObjectStructure

Returns a new instance of ObjectStructure.



448
449
450
451
# File 'lib/sisu/ao_doc_objects.rb', line 448

def initialize
  @of=:structure
  @is=@obj=@node=@lv=@ln=@lc=@status=@tmp=nil
end

Instance Attribute Details

#isObject

Returns the value of attribute is.



447
448
449
# File 'lib/sisu/ao_doc_objects.rb', line 447

def is
  @is
end

#lcObject

Returns the value of attribute lc.



447
448
449
# File 'lib/sisu/ao_doc_objects.rb', line 447

def lc
  @lc
end

#lnObject

Returns the value of attribute ln.



447
448
449
# File 'lib/sisu/ao_doc_objects.rb', line 447

def ln
  @ln
end

#lvObject

Returns the value of attribute lv.



447
448
449
# File 'lib/sisu/ao_doc_objects.rb', line 447

def lv
  @lv
end

#nodeObject

Returns the value of attribute node.



447
448
449
# File 'lib/sisu/ao_doc_objects.rb', line 447

def node
  @node
end

#objObject

Returns the value of attribute obj.



447
448
449
# File 'lib/sisu/ao_doc_objects.rb', line 447

def obj
  @obj
end

#ofObject

Returns the value of attribute of.



447
448
449
# File 'lib/sisu/ao_doc_objects.rb', line 447

def of
  @of
end

#statusObject

Returns the value of attribute status.



447
448
449
# File 'lib/sisu/ao_doc_objects.rb', line 447

def status
  @status
end

#tagObject

Returns the value of attribute tag.



447
448
449
# File 'lib/sisu/ao_doc_objects.rb', line 447

def tag
  @tag
end

#tmpObject

Returns the value of attribute tmp.



447
448
449
# File 'lib/sisu/ao_doc_objects.rb', line 447

def tmp
  @tmp
end

Instance Method Details

#xml_dom(h, o = nil) ⇒ Object



452
453
454
455
456
457
458
459
460
461
462
463
464
# File 'lib/sisu/ao_doc_objects.rb', line 452

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