Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

freemarker.ext.beans: Javadoc index of package freemarker.ext.beans.


Package Samples:

freemarker.ext.beans

Classes:

MapModel: A special case of BeanModel that adds implementation for freemarker.template.TemplateMethodModelEx on map objects that is a shortcut for the Map.get() method. Note that if the passed argument itself is a reflection-wrapper model, then the map lookup will be performed using the wrapped object as the key. Note that you can call get() using the map.key syntax inherited from BeanModel as well, however in that case the key is always a string. The class itself does not implement the freemarker.template.TemplateCollectionModel . You can, however use map.entrySet() , map.keySet() , or map.values() to obtain ...
IteratorModel: A class that adds freemarker.template.TemplateModelIterator functionality to the java.util.Iterator interface implementers. It differs from the freemarker.template.SimpleCollection in that it inherits from BeanModel , and therefore you can call methods on it directly, even to the effect of calling iterator.remove() in the template. Using the model as a collection model is NOT thread-safe, as iterators are inherently not thread-safe. Further, you can iterate over it only once. Attempts to call the iterator() 55 method after it was already driven to the end once will throw an exception.
ResourceBundleModel: A hash model that wraps a resource bundle. Makes it convenient to store localized content in the data model. It also acts as a method model that will take a resource key and arbitrary number of arguments and will apply java.text.MessageFormat with arguments on the string represented by the key. Typical usages: bundle.resourceKey will retrieve the object from resource bundle with key resourceKey bundle("patternKey", arg1, arg2, arg3) will retrieve the string from resource bundle with key patternKey , and will use it as a pattern for MessageFormat with arguments arg1, arg2 and arg3
StaticModel: Wraps the static fields and methods of a class in a freemarker.template.TemplateHashModel . Fields are wrapped using BeansWrapper.wrap(Object) 55 , and methods are wrapped into an appropriate freemarker.template.TemplateMethodModelEx instance. Unfortunately, there is currently no support for bean property-style calls of static methods, similar to that in BeanModel .
EnumerationModel: A class that adds freemarker.template.TemplateModelIterator functionality to the java.util.Enumeration interface implementers. Using the model as a collection model is NOT thread-safe, as enumerations are inherently not thread-safe. Further, you can iterate over it only once. Attempts to call the iterator() 55 method after it was already driven to the end once will throw an exception.
BeanModel: A class that will wrap an arbitrary object into freemarker.template.TemplateHashModel interface allowing calls to arbitrary property getters and invocation of accessible methods on the object from a template using the object.foo to access properties and object.bar(arg1, arg2) to invoke methods on it. You can also use the object.foo[index] syntax to access indexed properties. It uses Beans java.beans.Introspector to dynamically discover the properties and methods.
StaticModels: Utility class for instantiating StaticModel instances from templates. If your template's data model contains an instance of StaticModels (named, say StaticModels ), then you can instantiate an arbitrary StaticModel using get syntax (i.e. StaticModels["java.lang.System"].currentTimeMillis() ).
StringModel: Subclass of BeanModel that exposes the return value of the Object.toString() > Object.toString() 55 method through the freemarker.template.TemplateScalarModel interface.
ArrayModel: A class that will wrap an arbitrary array into freemarker.template.TemplateCollectionModel and freemarker.template.TemplateSequenceModel interfaces. It supports element retrieval through the array[index] syntax and can be iterated as a list.
SimpleMapModel: Model used by BeansWrapper when simpleMapWrapper mode is enabled. Provides a simple hash model interface to the underlying map (does not copy like freemarker.template.SimpleHash ), and a method interface to non-string keys.
CollectionModel: A special case of BeanModel that can wrap Java collections and that implements the freemarker.template.TemplateCollectionModel in order to be usable in a <foreach> block.
SimpleMethodModel: A class that will wrap a reflected method call into a freemarker.template.TemplateMethodModel interface. It is used by BeanModel to wrap reflected method calls for non-overloaded methods.
OverloadedMethodModel: A class that will wrap a reflected method call into a freemarker.template.TemplateMethodModel interface. It is used by BeanModel to wrap reflected method calls for overloaded methods.
NumberModel: Wraps arbitrary subclass of java.lang.Number into a reflective model. Beside acting as a freemarker.template.TemplateNumberModel , you can call all Java methods on these objects as well.
DateModel: Wraps arbitrary subclass of java.util.Date into a reflective model. Beside acting as a freemarker.template.TemplateDateModel , you can call all Java methods on these objects as well.
BooleanModel: A class that will wrap instances of java.lang.Boolean into a freemarker.template.TemplateBooleanModel .
InvalidPropertyException: An exception thrown when there is an attempt to access an invalid bean property when we are in a "strict bean" mode
BeansWrapper: Utility class that provides generic services to reflection classes.
CollectionAdapter
HashAdapter
MethodMap
SequenceAdapter

Home | Contact Us | Privacy Policy | Terms of Service