All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jnario.doc.HtmlFile.xtend Maven / Gradle / Ivy

/*******************************************************************************
 * Copyright (c) 2012 BMW Car IT and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/
package org.jnario.doc

import org.eclipse.xtend.lib.Property
import org.eclipse.xtext.xbase.lib.Procedures$Procedure1

class HtmlFile {

	public static HtmlFile EMPTY_FILE = new HtmlFile

	def static newHtmlFile(Procedures$Procedure1 initializer){
		val htmlFile = new HtmlFile()
		initializer.apply(htmlFile)
		return htmlFile
	}
	
	@Property HtmlAssets assets = new HtmlAssets	
	@Property CharSequence name = ""
	@Property CharSequence title = ""
	@Property CharSequence content = ""
	@Property String rootFolder = ""
	@Property CharSequence sourceCode = ""
	@Property CharSequence fileName = ""
	@Property String executionStatus = ""
	
	def toText()'''
		
		
		
		
		«title»
		
		

		

		«FOR cssFile : assets.cssFiles»
		
		«ENDFOR»
		«FOR jsFile : assets.jsFiles»
		
		«ENDFOR»
		
		
		
			
«content»

«fileName»

«sourceCode»

''' }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy