atg.taglib.json
Class JsonPropertyTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by atg.taglib.json.JsonBaseTag
          extended by atg.taglib.json.JsonPropertyTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class JsonPropertyTag
extends JsonBaseTag

Tag to render a JSON property. This is a simple string/value pair. The value may be set either as a value= attribute of the tag, or it may be contained within the tag's body.
If the value is set in the body, then it is always assumed to be a String. However, if it is set with a value= attribute, then it may be a Boolean, Integer, Long,

Version:
$Id$
Author:
James Wiltshire

Field Summary
protected  java.lang.Object mValue
           
 
Fields inherited from class atg.taglib.json.JsonBaseTag
mEscapeXmlOriginalValue, mEscapeXmlValueSet, mName, mNewStackCreated, mTrim, PRETTY_PRINT_INDENT
 
Constructor Summary
JsonPropertyTag()
           
 
Method Summary
 void doTag()
          Process the tag
 java.lang.Object getValue()
          Gets the Value
 void setValue(java.lang.Object pValue)
          Sets the Value
 
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

mValue

protected java.lang.Object mValue
Constructor Detail

JsonPropertyTag

public JsonPropertyTag()
Method Detail

getValue

public java.lang.Object getValue()
Gets the Value

Returns:
the Value

setValue

public void setValue(java.lang.Object pValue)
Sets the Value

Parameters:
pValue - The Value to set

doTag

public void doTag()
           throws javax.servlet.jsp.JspException
Process the tag

Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException
See Also:
SimpleTagSupport.doTag()


Copyright © 2008 Art Technology Group, Inc. (ATG). All Rights Reserved.