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

net.anotheria.asg.generator.AbstractAnoDocGenerator Maven / Gradle / Ivy

package net.anotheria.asg.generator;

import java.util.Iterator;
import java.util.List;

import net.anotheria.asg.generator.util.FileWriter;


/**
 * Base class for generators.
 *
 * @author lrosenberg
 * @version $Id: $Id
 */
public class AbstractAnoDocGenerator {
	/**
	 * 

runGenerator.

* * @param generator a {@link net.anotheria.asg.generator.IGenerator} object. * @param target a {@link net.anotheria.asg.generator.IGenerateable} object. * @param context a {@link net.anotheria.asg.generator.Context} object. * @param results a {@link java.util.List} object. */ protected void runGenerator(IGenerator generator, IGenerateable target, Context context, List results){ List tmp = generator.generate(target); for (Iterator it = tmp.iterator(); it.hasNext(); ) results.add(it.next()); } /** *

writeFiles.

* * @param entries a {@link java.util.List} object. */ protected void writeFiles(List entries){ for (int i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy