Liferay 7.0-ce-b7 portal-impl

com.liferay.portal.json
Class JSONFactoryImpl

java.lang.Object
  extended by com.liferay.portal.json.JSONFactoryImpl
All Implemented Interfaces:
com.liferay.portal.kernel.json.JSONFactory

public class JSONFactoryImpl
extends Object
implements com.liferay.portal.kernel.json.JSONFactory


Constructor Summary
JSONFactoryImpl()
           
 
Method Summary
 String convertJSONMLArrayToXML(String jsonml)
           
 String convertJSONMLObjectToXML(String jsonml)
           
 String convertXMLtoJSONMLArray(String xml)
           
 String convertXMLtoJSONMLObject(String xml)
           
 com.liferay.portal.kernel.json.JSONTransformer createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes)
           
 com.liferay.portal.kernel.json.JSONArray createJSONArray()
           
 com.liferay.portal.kernel.json.JSONArray createJSONArray(String json)
           
<T> com.liferay.portal.kernel.json.JSONDeserializer<T>
createJSONDeserializer()
           
 com.liferay.portal.kernel.json.JSONObject createJSONObject()
           
 com.liferay.portal.kernel.json.JSONObject createJSONObject(String json)
           
 com.liferay.portal.kernel.json.JSONSerializer createJSONSerializer()
           
 com.liferay.portal.kernel.json.JSONValidator createJSONValidator(String jsonSchema)
           
 Object deserialize(com.liferay.portal.kernel.json.JSONObject jsonObj)
           
 Object deserialize(String json)
           
 String getNullJSON()
           
 com.liferay.portal.kernel.json.JSONObject getUnmodifiableJSONObject()
           
 Object looseDeserialize(String json)
           
<T> T
looseDeserialize(String json, Class<T> clazz)
           
 String looseSerialize(Object object)
           
 String looseSerialize(Object object, com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, Class<?> clazz)
           
 String looseSerialize(Object object, String... includes)
           
 String looseSerializeDeep(Object object)
           
 String looseSerializeDeep(Object object, com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, Class<?> clazz)
           
 String serialize(Object object)
           
 String serializeThrowable(Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONFactoryImpl

public JSONFactoryImpl()
Method Detail

convertJSONMLArrayToXML

public String convertJSONMLArrayToXML(String jsonml)
Specified by:
convertJSONMLArrayToXML in interface com.liferay.portal.kernel.json.JSONFactory

convertJSONMLObjectToXML

public String convertJSONMLObjectToXML(String jsonml)
Specified by:
convertJSONMLObjectToXML in interface com.liferay.portal.kernel.json.JSONFactory

convertXMLtoJSONMLArray

public String convertXMLtoJSONMLArray(String xml)
Specified by:
convertXMLtoJSONMLArray in interface com.liferay.portal.kernel.json.JSONFactory

convertXMLtoJSONMLObject

public String convertXMLtoJSONMLObject(String xml)
Specified by:
convertXMLtoJSONMLObject in interface com.liferay.portal.kernel.json.JSONFactory

createJavaScriptNormalizerJSONTransformer

public com.liferay.portal.kernel.json.JSONTransformer createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes)
Specified by:
createJavaScriptNormalizerJSONTransformer in interface com.liferay.portal.kernel.json.JSONFactory

createJSONArray

public com.liferay.portal.kernel.json.JSONArray createJSONArray()
Specified by:
createJSONArray in interface com.liferay.portal.kernel.json.JSONFactory

createJSONArray

public com.liferay.portal.kernel.json.JSONArray createJSONArray(String json)
                                                         throws com.liferay.portal.kernel.json.JSONException
Specified by:
createJSONArray in interface com.liferay.portal.kernel.json.JSONFactory
Throws:
com.liferay.portal.kernel.json.JSONException

createJSONDeserializer

public <T> com.liferay.portal.kernel.json.JSONDeserializer<T> createJSONDeserializer()
Specified by:
createJSONDeserializer in interface com.liferay.portal.kernel.json.JSONFactory

createJSONObject

public com.liferay.portal.kernel.json.JSONObject createJSONObject()
Specified by:
createJSONObject in interface com.liferay.portal.kernel.json.JSONFactory

createJSONObject

public com.liferay.portal.kernel.json.JSONObject createJSONObject(String json)
                                                           throws com.liferay.portal.kernel.json.JSONException
Specified by:
createJSONObject in interface com.liferay.portal.kernel.json.JSONFactory
Throws:
com.liferay.portal.kernel.json.JSONException

createJSONSerializer

public com.liferay.portal.kernel.json.JSONSerializer createJSONSerializer()
Specified by:
createJSONSerializer in interface com.liferay.portal.kernel.json.JSONFactory

createJSONValidator

public com.liferay.portal.kernel.json.JSONValidator createJSONValidator(String jsonSchema)
                                                                 throws com.liferay.portal.kernel.json.JSONException
Specified by:
createJSONValidator in interface com.liferay.portal.kernel.json.JSONFactory
Throws:
com.liferay.portal.kernel.json.JSONException

deserialize

public Object deserialize(com.liferay.portal.kernel.json.JSONObject jsonObj)
Specified by:
deserialize in interface com.liferay.portal.kernel.json.JSONFactory

deserialize

public Object deserialize(String json)
Specified by:
deserialize in interface com.liferay.portal.kernel.json.JSONFactory

getNullJSON

public String getNullJSON()
Specified by:
getNullJSON in interface com.liferay.portal.kernel.json.JSONFactory

getUnmodifiableJSONObject

public com.liferay.portal.kernel.json.JSONObject getUnmodifiableJSONObject()
Specified by:
getUnmodifiableJSONObject in interface com.liferay.portal.kernel.json.JSONFactory

looseDeserialize

public Object looseDeserialize(String json)
Specified by:
looseDeserialize in interface com.liferay.portal.kernel.json.JSONFactory

looseDeserialize

public <T> T looseDeserialize(String json,
                              Class<T> clazz)
Specified by:
looseDeserialize in interface com.liferay.portal.kernel.json.JSONFactory

looseSerialize

public String looseSerialize(Object object)
Specified by:
looseSerialize in interface com.liferay.portal.kernel.json.JSONFactory

looseSerialize

public String looseSerialize(Object object,
                             com.liferay.portal.kernel.json.JSONTransformer jsonTransformer,
                             Class<?> clazz)
Specified by:
looseSerialize in interface com.liferay.portal.kernel.json.JSONFactory

looseSerialize

public String looseSerialize(Object object,
                             String... includes)
Specified by:
looseSerialize in interface com.liferay.portal.kernel.json.JSONFactory

looseSerializeDeep

public String looseSerializeDeep(Object object)
Specified by:
looseSerializeDeep in interface com.liferay.portal.kernel.json.JSONFactory

looseSerializeDeep

public String looseSerializeDeep(Object object,
                                 com.liferay.portal.kernel.json.JSONTransformer jsonTransformer,
                                 Class<?> clazz)
Specified by:
looseSerializeDeep in interface com.liferay.portal.kernel.json.JSONFactory

serialize

public String serialize(Object object)
Specified by:
serialize in interface com.liferay.portal.kernel.json.JSONFactory

serializeThrowable

public String serializeThrowable(Throwable throwable)
Specified by:
serializeThrowable in interface com.liferay.portal.kernel.json.JSONFactory

Liferay 7.0-ce-b7 portal-impl