freemarker.template
Interface TemplateNumberModel

All Superinterfaces:
TemplateModel, TemplateScalarModel
All Known Implementing Classes:
SimpleNumber, NumberModel

public interface TemplateNumberModel
extends TemplateScalarModel

Scalar values in a template data model must implement this interface.

The detail messages of any TemplateModelExceptions thrown will be included as HTML comments in the output.

Version:
$Id: TemplateNumberModel.java,v 1.4 2002/03/17 13:14:51 revusky Exp $
Author:
Jonathan Revusky

Method Summary
 java.lang.Number getAsNumber()
          Returns the number.
 
Methods inherited from interface freemarker.template.TemplateScalarModel
getAsString
 
Methods inherited from interface freemarker.template.TemplateModel
isEmpty
 

Method Detail

getAsNumber

public java.lang.Number getAsNumber()
                             throws TemplateModelException
Returns the number.
Returns:
the java.lang.Number instance associated with this scalar.