|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
atg.taglib.json.JsonBaseTag
atg.taglib.json.JsonArrayTag
public class JsonArrayTag
Tag to represent a JSON array. The body of this tag should declare the template that will
be used to represent each element in the array. Each element in the 'items' collection will
be iterated over, and the body of the tag used to render each item in the array.
This tag should contain a single json:object element if each array element is an object,
otherwise it should contain textual content, which will create an array of Strings
Field Summary | |
---|---|
protected java.lang.Object |
mItems
|
protected java.util.Collection |
mItemsCollection
Raw items coerced to a Collection |
protected boolean |
mItemsPropertySet
Flag to signify whether the items property was explicitly set |
protected java.lang.String |
mVar
|
Fields inherited from class atg.taglib.json.JsonBaseTag |
---|
mEscapeXmlOriginalValue, mEscapeXmlValueSet, mName, mNewStackCreated, mTrim, PRETTY_PRINT_INDENT |
Constructor Summary | |
---|---|
JsonArrayTag()
|
Method Summary | |
---|---|
void |
doTag()
Process the tag |
java.lang.Object |
getItems()
Gets the Items |
java.lang.String |
getVar()
Gets the Var |
void |
setItems(java.lang.Object pItems)
Sets the Items |
void |
setVar(java.lang.String pVar)
Sets the Var |
Methods inherited from class atg.taglib.json.JsonBaseTag |
---|
createEntityStack, entityStackExists, getCurrentEntity, getDefaultValue, getEntityStack, getEscapeXml, getEscapeXmlDefault, getName, getPrettyPrintIndentFactor, getTrim, isRootTag, processTagEnd, removeEntityStack, resetEscapeXmlValue, setEscapeXml, setName, setPrettyPrint, setTrim, trimAndEscapeValue |
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String mVar
protected java.lang.Object mItems
protected java.util.Collection mItemsCollection
protected boolean mItemsPropertySet
Constructor Detail |
---|
public JsonArrayTag()
Method Detail |
---|
public java.lang.String getVar()
public void setVar(java.lang.String pVar)
pVar
- The Var to setpublic java.lang.Object getItems()
public void setItems(java.lang.Object pItems)
pItems
- The Items to setpublic void doTag() throws javax.servlet.jsp.JspException
doTag
in interface javax.servlet.jsp.tagext.SimpleTag
doTag
in class javax.servlet.jsp.tagext.SimpleTagSupport
javax.servlet.jsp.JspException
SimpleTagSupport.doTag()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |