public final class JsonHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
OSLC4J_READ_SPECIAL_NUMS
System property "org.eclipse.lyo.oslc4j.readSpecialNumberValues" : When "true", read "INF", "-INF", and "NaN"
strings for Infinity, -Infinity, and NaN float and double values,
respectively.
|
static String |
OSLC4J_WRITE_SPECIAL_NUMS
System property "org.eclipse.lyo.oslc4j.writeSpecialNumberValues" : When "true", write "INF", "-INF", and "NaN"
strings for Infinity, -Infinity, and NaN float and double values,
respectively.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
addAboutURI(org.apache.wink.json4j.JSONObject jsonObject,
Map<String,String> namespaceMappings,
Map<String,String> reverseNamespaceMappings,
Class<? extends Object> objectClass,
URI aboutURI) |
protected static void |
addExtendedProperties(Map<String,String> namespaceMappings,
Map<String,String> reverseNamespaceMappings,
org.apache.wink.json4j.JSONObject jsonObject,
IExtendedResource extendedResource,
Map<String,Object> properties,
Map<Object,org.apache.wink.json4j.JSONObject> visitedObjects) |
static org.apache.wink.json4j.JSONObject |
createJSON(String descriptionAbout,
String responseInfoAbout,
ResponseInfo<?> responseInfo,
Object[] objects,
Map<String,Object> properties) |
protected static void |
fillInRdfType(String rdfPrefix,
org.apache.wink.json4j.JSONObject jsonObject,
IExtendedResource resource) |
static Object[] |
fromJSON(org.apache.wink.json4j.JSONObject jsonObject,
Class<?> beanClass) |
protected static org.apache.wink.json4j.JSONObject |
handleResourceReference(Map<String,String> namespaceMappings,
Map<String,String> reverseNamespaceMappings,
Class<?> resourceClass,
Method method,
URI uri) |
public static final String OSLC4J_WRITE_SPECIAL_NUMS
OSLC4J_READ_SPECIAL_NUMS
,
Constant Field Valuespublic static final String OSLC4J_READ_SPECIAL_NUMS
OSLC4J_WRITE_SPECIAL_NUMS
,
Constant Field Valuespublic static org.apache.wink.json4j.JSONObject createJSON(String descriptionAbout, String responseInfoAbout, ResponseInfo<?> responseInfo, Object[] objects, Map<String,Object> properties) throws DatatypeConfigurationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, org.apache.wink.json4j.JSONException, OslcCoreApplicationException
DatatypeConfigurationException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
org.apache.wink.json4j.JSONException
OslcCoreApplicationException
public static Object[] fromJSON(org.apache.wink.json4j.JSONObject jsonObject, Class<?> beanClass) throws DatatypeConfigurationException, IllegalAccessException, IllegalArgumentException, InstantiationException, InvocationTargetException, OslcCoreApplicationException, URISyntaxException
protected static void addExtendedProperties(Map<String,String> namespaceMappings, Map<String,String> reverseNamespaceMappings, org.apache.wink.json4j.JSONObject jsonObject, IExtendedResource extendedResource, Map<String,Object> properties, Map<Object,org.apache.wink.json4j.JSONObject> visitedObjects) throws org.apache.wink.json4j.JSONException, DatatypeConfigurationException, IllegalAccessException, InvocationTargetException, OslcCoreApplicationException
org.apache.wink.json4j.JSONException
DatatypeConfigurationException
IllegalAccessException
InvocationTargetException
OslcCoreApplicationException
protected static org.apache.wink.json4j.JSONObject handleResourceReference(Map<String,String> namespaceMappings, Map<String,String> reverseNamespaceMappings, Class<?> resourceClass, Method method, URI uri) throws OslcCoreRelativeURIException, org.apache.wink.json4j.JSONException
OslcCoreRelativeURIException
org.apache.wink.json4j.JSONException
protected static void addAboutURI(org.apache.wink.json4j.JSONObject jsonObject, Map<String,String> namespaceMappings, Map<String,String> reverseNamespaceMappings, Class<? extends Object> objectClass, URI aboutURI) throws OslcCoreRelativeURIException, org.apache.wink.json4j.JSONException
OslcCoreRelativeURIException
org.apache.wink.json4j.JSONException
protected static void fillInRdfType(String rdfPrefix, org.apache.wink.json4j.JSONObject jsonObject, IExtendedResource resource) throws URISyntaxException
URISyntaxException
Copyright © 2017. All rights reserved.