Package org.opencms.jsp
Interface I_CmsJspJsonContext
-
- All Known Implementing Classes:
CmsJspTagJsonArray
,CmsJspTagJsonObject
public interface I_CmsJspJsonContext
Interface implemented by JSON tags.Used by nested tags to add values to the JSON being constructed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addValue(java.lang.String key, java.lang.Object val)
Adds a value to the JSON value being constructed.
-
-
-
Method Detail
-
addValue
void addValue(java.lang.String key, java.lang.Object val) throws javax.servlet.jsp.JspException
Adds a value to the JSON value being constructed.For a JSON object, the key must be not null, and for a JSON array, it must always be null.
- Parameters:
key
- the key (or null)val
- the value to add- Throws:
javax.servlet.jsp.JspException
- in case the value could not be added
-
-