package org.freehep.util.template;

import java.util.List;

/** An interface to be implemented by anything that wishes
 * to provide values to the template engine.
 * @author tonyj
 * @version $Id: ValueProvider.java 8584 2006-08-10 23:06:37Z duns $
 */
public interface ValueProvider
{
   /** Get a single value
    * @param name The name whose value is to be returned
    * @return The value, or null if undefined.
    */   
   String getValue(String name);
   /** Get a list of value providers.
    * Each item in the returned list must itself be a ValueProvider.
    * @param name The template name of the list to be returned.
    * @return The list of value providers, or null if no template is defined.
    */   
   List getValues(String name);
}

 

Ads help maintain this website.