class BUILDER_FACTORY

(source code)

Description

Builder factory

note
	description: "Builder factory"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2017 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2020-02-10 14:28:13 GMT (Monday 10th February 2020)"
	revision: "1"

class
	BUILDER_FACTORY

create
	make

feature {NONE} -- Initialization

	make
		do
			create {EL_SMART_XML_TO_EIFFEL_OBJECT_BUILDER} smart_builder.make
		end

feature -- Factory

	new_matrix (file_path: EL_FILE_PATH): MATRIX_CALCULATOR
			--
		do
			create Result.make_from_file (file_path)
		end

	new_serializeable (file_path: EL_FILE_PATH): EL_BUILDABLE_FROM_NODE_SCAN
		-- detect type from processing instruction
		do
			smart_builder.build_from_file (file_path)
			if smart_builder.has_item then
				Result := smart_builder.item
			end
		end

	new_smil_presentation (file_path: EL_FILE_PATH): SMIL_PRESENTATION
			--
		do
			create Result.make_from_file (file_path)
		end

	new_web_form (file_path: EL_FILE_PATH): WEB_FORM
			--
		do
			create Result.make_from_file (file_path)
		end

feature {NONE} -- Internal attributes

	smart_builder: EL_SMART_BUILDABLE_FROM_NODE_SCAN
end