app/helpers/washout_builder_complex_type_helper.rb
# checks if a complex attribute of a complex type is a array or not
# and retrieves the complex class name of the attribute and prints it
# @see WashoutBuilder::Document::ComplexType#find_complex_class_name
# @see WashOutParam#multiplied
#
# @param [Array] pre Array that contains the content that will be appended to the xml element li
# @param [WashOut::Param] element  the element that needs to be printed
#
# @return [void]
#
# @api public
checks if a complex attribute of a complex type is a array or not
and retrieves the complex class name of the attribute and prints it
checks if a complex attribute of a complex type is a array or not and retrieves the complex class name of the attribute and prints it
def create_complex_element_type_html(pre, element, element_description)
    complex_class = element.find_complex_class_name
    return if complex_class.nil?
    real_class = find_correct_complex_type(complex_class)
    complex_class_content = element.multiplied ? "Array of #{real_class}" : "#{real_class}"
    pre << "<a href='##{real_class}'><span class='lightBlue'>#{complex_class_content}</span></a>&nbsp;<span class='bold'>#{element.name}</span>"
    pre << "&#8194;<span>#{html_safe(element_description)}</span>" unless element_description.blank?
    pre
  end
def create_complex_element_type_html ( pre , element , element_description ) complex_class = element . find_complex_class_name return if complex_class . nil? real_class = find_correct_complex_type ( complex_class ) complex_class_content = element . multiplied ? "Array of #{real_class}" : "#{real_class}" pre << "<a href='##{real_class}'><span class='lightBlue'>#{complex_class_content}</span></a>&nbsp;<span class='bold'>#{element.name}</span>" pre << "&#8194;<span>#{html_safe(element_description)}</span>" unless element_description . blank? pre end
checks if a complex attribute of a complex type is a array or not
and retrieves the complex class name of the attribute and prints it
checks if a complex attribute of a complex type is a array or not and retrieves the complex class name of the attribute and prints it
None
void
pre
<not_specific>
element
<not_specific>
element_description
<not_specific>
<not_specific>
element the element that needs to be printed
element the element that needs to be printed
see
None
see
None
api
None