freemarker.template
Interface TemplateNumberModel

All Superinterfaces:
TemplateModel
All Known Implementing Classes:
FastNumber, NumberModel, SimpleNumberModel, SimpleNumber, FastBoolean, StringNumberModel

public interface TemplateNumberModel
extends TemplateModel

Numeric 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.

Since:
1.8
Version:
$Id: TemplateNumberModel.java,v 1.2 2003/11/03 03:33:32 run2000 Exp $
See Also:
TemplateScalarModel

Method Summary
 long getAsNumber()
          Returns the number's value as a long.
 
Methods inherited from interface freemarker.template.TemplateModel
isEmpty
 

Method Detail

getAsNumber

public long getAsNumber()
                 throws TemplateModelException
Returns the number's value as a long.
Returns:
the long value of this scalar.