org.apache.wicket.ajax.json
Class JsonFunction

java.lang.Object
  extended by org.apache.wicket.ajax.json.JsonFunction
All Implemented Interfaces:
Serializable, CharSequence, JSONString, IClusterable

public class JsonFunction
extends Object
implements JSONString, CharSequence, IClusterable

Represents a Json function. When written out these values are not escaped so its possible to write out raw JavaScript.

See Also:
Serialized Form

Constructor Summary
JsonFunction(CharSequence value)
           
 
Method Summary
 char charAt(int index)
           
 int length()
           
 CharSequence subSequence(int start, int end)
           
 String toJSONString()
          The toJSONString method allows a class to produce its own JSON serialization.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonFunction

public JsonFunction(CharSequence value)
Method Detail

toString

public String toString()
Specified by:
toString in interface CharSequence
Overrides:
toString in class Object

toJSONString

public String toJSONString()
Description copied from interface: JSONString
The toJSONString method allows a class to produce its own JSON serialization.

Specified by:
toJSONString in interface JSONString
Returns:
A strictly syntactically correct JSON text.

length

public int length()
Specified by:
length in interface CharSequence

charAt

public char charAt(int index)
Specified by:
charAt in interface CharSequence

subSequence

public CharSequence subSequence(int start,
                                int end)
Specified by:
subSequence in interface CharSequence


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.