public class JSONSection
extends java.lang.Object
JSONSection represents a portion of JSON data as the value in a template. It
is referenced by the placeholder with the namespace of "s:". JSONSection
contains a JSON path to select the content from the root JSON, an operation
name and a list of JSONFilters to select the attached template by matching
on each of the selected JSON content. On the first match, the template of
the very filter will be applied to the selected content. The api method of
fulfill() will return the formatted JSON content.
JSONSection supports nested children JSONSections. Therefore, its json path
is always applied to the root JSON data. In this case, a list of sections
and a parameter map must be provided for the api method. The parameter map
is supposed to contain the root JSON data at the key of "r:_JSON_".
- Author:
- yannanlu@yahoo.com