| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.ext.beans2.ConvertToByte
public class ConvertToByte
Returns a Byte value for a given number model.
| Method Summary | |
|---|---|
 java.lang.Object | 
convert(TemplateModel model)
Convert the given template model into the target object type represented by this converter.  | 
 boolean | 
converts(TemplateModel model,
         java.lang.Class<?> target)
Determines whether this converter can convert from the given template model into an instance of the given class target.  | 
static ConvertToByte | 
getInstance()
Returns the singleton instance of this converter.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static ConvertToByte getInstance()
public java.lang.Object convert(TemplateModel model)
                         throws java.lang.IllegalArgumentException,
                                java.lang.NullPointerException,
                                TemplateModelException
ConverterConverter.converts(freemarker.template.TemplateModel, java.lang.Class>)
 to determine whether this converter can perform the requested conversion.
convert in interface Convertermodel - the template model to be converted
java.lang.IllegalArgumentException - the template model was of the wrong
 type for this converter
java.lang.NullPointerException - the template model is null
TemplateModelException - there was an error while retrieving a
 value from the template model
public boolean converts(TemplateModel model,
                        java.lang.Class<?> target)
Converter
converts in interface Convertermodel - the template model to be convertedtarget - the target class for the conversion
true if this converter can convert the given
 template model to an instance of the target class, otherwise
 false
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||