Class: Enterprisifier::Schema::Elements::ElementElement

Inherits:
BaseElement
  • Object
show all
Defined in:
lib/enterprisifier/schema/elements/element.rb

Instance Attribute Summary

Attributes inherited from BaseElement

#attributes, #children, #default_namespace, #namespaces, #parent, #text

Instance Method Summary collapse

Methods inherited from BaseElement

#add_child, #add_text, #annotation, #base, #documentation, #each_child, #has_child?, #has_children?, #initialize, map_attribute, #name, #read_attribute, #ref, register, #registered_as, #root, #rootable?, #update

Constructor Details

This class inherits a constructor from Enterprisifier::Schema::BaseElement

Instance Method Details

#element_typeObject



11
12
13
14
15
16
17
18
# File 'lib/enterprisifier/schema/elements/element.rb', line 11

def element_type
  return @element_type if defined?(@element_type)
  if type_val = read_attribute("type")
    @element_type = namespaced_name(type_val)
  else
    @element_type = nil
  end
end