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

net.flexmojos.oss.generator.GenerationRequest Maven / Gradle / Ivy

There is a newer version: 7.1.1
Show newest version
/**
 * Flexmojos is a set of maven goals to allow maven users to compile, optimize and test Flex SWF, Flex SWC, Air SWF and Air SWC.
 * Copyright (C) 2008-2012  Marvin Froeder 
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */
package net.flexmojos.oss.generator;

import java.io.File;
import java.util.LinkedHashMap;
import java.util.Map;

public class GenerationRequest
{

    private Map classes;

    private ClassLoader classLoader;

    // UidFieldName
    // OutputEnumToBaseOutputDirectory
    // UsingTideEntity
    private Map extraOptions;

    private GeneratorLogger logger;

    private File persistentOutputFolder;

    private Map templates;

    private File transientOutputFolder;

    private String[] translators;

    protected void addClass( String classname, File sourceJar )
    {
        getClasses().put( classname, sourceJar );
    }

    protected void addExtraOption( String name, String value )
    {
        getExtraOptions().put( name, value );
    }

    public Map getClasses()
    {
        if ( classes == null )
        {
            classes = new LinkedHashMap();
        }
        return classes;
    }

    public ClassLoader getClassLoader()
    {
        return this.classLoader;
    }

    public Map getExtraOptions()
    {
        if ( extraOptions == null )
        {
            this.extraOptions = new LinkedHashMap();
        }
        return extraOptions;
    }

    public GeneratorLogger getLogger()
    {
        return logger;
    }

    public File getPersistentOutputFolder()
    {
        return persistentOutputFolder;
    }

    public Map getTemplates()
    {
        if ( templates == null )
        {
            templates = new LinkedHashMap();
        }
        return templates;
    }

    public File getTransientOutputFolder()
    {
        return transientOutputFolder;
    }

    public String[] getTranslators()
    {
        return translators;
    }

    protected void setClasses( Map classes )
    {
        this.classes = classes;
    }

    protected void setClassLoader( ClassLoader classLoader )
    {
        this.classLoader = classLoader;
    }

    protected void setExtraOptions( Map extraOptions )
    {
        this.extraOptions = extraOptions;
    }

    protected void setLogger( GeneratorLogger logger )
    {
        this.logger = logger;
    }

    protected void setPersistentOutputFolder( File persistentOutputFolder )
    {
        this.persistentOutputFolder = persistentOutputFolder;
    }

    protected void setTemplates( Map templates )
    {
        this.templates = templates;
    }

    protected void setTransientOutputFolder( File transientOutputFolder )
    {
        this.transientOutputFolder = transientOutputFolder;
    }

    protected void setTranslators( String[] translators )
    {
        this.translators = translators;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy