org.ztemplates.property
Class ZJsonProperty

java.lang.Object
  extended by org.ztemplates.property.ZProperty<org.json.JSONObject>
      extended by org.ztemplates.property.ZJsonProperty

public class ZJsonProperty
extends ZProperty<org.json.JSONObject>


Field Summary
 
Fields inherited from class org.ztemplates.property.ZProperty
log
 
Constructor Summary
ZJsonProperty()
           
ZJsonProperty(String name)
           
 
Method Summary
 String format(org.json.JSONObject obj)
           
 org.json.JSONObject parse(String formattedValue)
           
 
Methods inherited from class org.ztemplates.property.ZProperty
clear, getName, getStringValue, getStringValues, getValidators, getValue, getValues, isEmpty, isReadable, isRequired, isWriteable, setName, setReadable, setRequired, setStringValue, setStringValues, setValue, setWriteable, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZJsonProperty

public ZJsonProperty()

ZJsonProperty

public ZJsonProperty(String name)
Method Detail

parse

public org.json.JSONObject parse(String formattedValue)
                          throws org.json.JSONException
Specified by:
parse in class ZProperty<org.json.JSONObject>
Throws:
org.json.JSONException

format

public String format(org.json.JSONObject obj)
Specified by:
format in class ZProperty<org.json.JSONObject>


Copyright © 2011. All Rights Reserved.