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

com.mockrunner.mock.web.MockJspConfigDescriptor Maven / Gradle / Ivy

There is a newer version: 2.0.7
Show newest version
package com.mockrunner.mock.web;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class MockJspConfigDescriptor // implements JspConfigDescriptor
{
    private List jspPropertyGroups;
    private List taglibs;
    
    public MockJspConfigDescriptor()
    {
        reset();
    }
    
    public void reset()
    {
        jspPropertyGroups = new ArrayList();
        taglibs = new ArrayList();
    }
    
    public Collection getJspPropertyGroups()
    {
        return new ArrayList(jspPropertyGroups);
    }

    public Collection getTaglibs()
    {
        return new ArrayList(taglibs);
    }

    /**
     * Adds a JspPropertyGroupDescriptor to the list of JSP property groups.
     * 
     * @param jspPropertyGroup the JspPropertyGroupDescriptor to add
     */
//    public void addJspPropertyGroup(JspPropertyGroupDescriptor jspPropertyGroup)
//    {
//        this.jspPropertyGroups.add(jspPropertyGroup);
//    }
    
    /**
     * Clears the list of JSP property groups.
     */
    public void clearJspPropertyGroups()
    {
        this.jspPropertyGroups.clear();
    }
    
    /**
     * Adds a TaglibDescriptor to the list of taglibs.
     * 
     * @param taglib the TaglibDescriptor to add
     */
//    public void addTaglib(TaglibDescriptor taglib)
//    {
//        this.taglibs.add(taglib);
//    }
    
    /**
     * Clears the list of taglibs.
     */
    public void clearTaglibs()
    {
        this.taglibs.clear();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy