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

org.neogroup.warp.views.View Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version

package org.neogroup.warp.views;

/**
 * Class that represents a view that can be rendered to a string
 */
public abstract class View {

    /**
     * Set a parameter value
     * @param name name of parameter
     * @param value value of parameter
     */
    public abstract void setParameter (String name, Object value);

    /**
     * Get the parameter value
     * @param name name of parameter
     * @return value
     */
    public abstract Object getParameter (String name);

    /**
     * Renders the view to a string
     * @return string
     */
    public abstract String render ();

    /**
     * Renders the view as string
     * @return string representation of the view
     */
    @Override
    public String toString() {
        return render();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy